@Deprecated public class TilesView extends InternalResourceView
TilesJstlView
with JSTL support is a separate class,
mainly to avoid JSTL dependencies in this class.
NOTE: This TilesView class supports Tiles 1.x,
a.k.a. "Struts Tiles", which comes as part of Struts 1.x.
For Tiles 2.x support, check out
TilesView
.
Depends on a Tiles DefinitionsFactory which must be available
in the ServletContext. This factory is typically set up via a
TilesConfigurer
bean definition in the application context.
Check out ComponentControllerSupport
which provides
a convenient base class for Spring-aware component controllers,
allowing convenient access to the Spring ApplicationContext.
AbstractUrlBasedView.setUrl(java.lang.String)
,
TilesJstlView
,
TilesConfigurer
,
ComponentControllerSupport
Modifier and Type | Field and Description |
---|---|
static String |
PATH_ATTRIBUTE
Deprecated.
Name of the attribute that will override the path of the layout page
to render.
|
DEFAULT_CONTENT_TYPE
logger
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE, SELECTED_CONTENT_TYPE
Constructor and Description |
---|
TilesView()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
executeController(org.apache.struts.tiles.Controller controller,
org.apache.struts.tiles.ComponentContext context,
HttpServletRequest request,
HttpServletResponse response)
Deprecated.
Execute the given Tiles controller.
|
protected org.apache.struts.tiles.ComponentContext |
getComponentContext(org.apache.struts.tiles.ComponentDefinition definition,
HttpServletRequest request)
Deprecated.
Determine the Tiles component context for the given Tiles definition.
|
protected org.apache.struts.tiles.ComponentDefinition |
getComponentDefinition(org.apache.struts.tiles.DefinitionsFactory factory,
HttpServletRequest request)
Deprecated.
Determine the Tiles component definition for the given Tiles
definitions factory.
|
protected org.apache.struts.tiles.Controller |
getController(org.apache.struts.tiles.ComponentDefinition definition,
HttpServletRequest request)
Deprecated.
Determine and initialize the Tiles component controller for the
given Tiles definition, if any.
|
protected String |
getDispatcherPath(org.apache.struts.tiles.ComponentDefinition definition,
HttpServletRequest request)
Deprecated.
Determine the dispatcher path for the given Tiles definition,
i.e.
|
protected void |
initApplicationContext()
Deprecated.
Subclasses can override this for custom initialization behavior.
|
protected String |
prepareForRendering(HttpServletRequest request,
HttpServletResponse response)
Deprecated.
Prepare for rendering the Tiles definition: Execute the associated
component controller if any, and determine the request dispatcher path.
|
static void |
setPath(HttpServletRequest request,
String path)
Deprecated.
Set the path of the layout page to render.
|
exposeForwardRequestAttributes, exposeHelpers, getRequestDispatcher, getRequestToExpose, initServletContext, isContextRequired, renderMergedOutputModel, setAlwaysInclude, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposeForwardAttributes, setPreventDispatchLoop, useInclude
afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toString
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, setResponseContentType, writeToResponse
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, setServletContext
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
public static final String PATH_ATTRIBUTE
public static void setPath(HttpServletRequest request, String path)
request
- current HTTP requestpath
- the path of the layout pagePATH_ATTRIBUTE
protected void initApplicationContext() throws ApplicationContextException
ApplicationObjectSupport
The default implementation is empty. Called by
ApplicationObjectSupport.initApplicationContext(org.springframework.context.ApplicationContext)
.
initApplicationContext
in class ApplicationObjectSupport
ApplicationContextException
- in case of initialization errorsApplicationObjectSupport.setApplicationContext(org.springframework.context.ApplicationContext)
protected String prepareForRendering(HttpServletRequest request, HttpServletResponse response) throws Exception
prepareForRendering
in class InternalResourceView
request
- current HTTP requestresponse
- current HTTP responseException
- if preparations failedAbstractUrlBasedView.getUrl()
protected org.apache.struts.tiles.ComponentDefinition getComponentDefinition(org.apache.struts.tiles.DefinitionsFactory factory, HttpServletRequest request) throws Exception
factory
- the Tiles definitions factoryrequest
- current HTTP requestException
protected org.apache.struts.tiles.ComponentContext getComponentContext(org.apache.struts.tiles.ComponentDefinition definition, HttpServletRequest request) throws Exception
definition
- the Tiles definition to renderrequest
- current HTTP requestException
- if preparations failedprotected org.apache.struts.tiles.Controller getController(org.apache.struts.tiles.ComponentDefinition definition, HttpServletRequest request) throws Exception
definition
- the Tiles definition to renderrequest
- current HTTP requestnull
if noneException
- if preparations failedprotected void executeController(org.apache.struts.tiles.Controller controller, org.apache.struts.tiles.ComponentContext context, HttpServletRequest request, HttpServletResponse response) throws Exception
controller
- the component controller to executecontext
- the component contextrequest
- current HTTP requestresponse
- current HTTP responseException
- if controller execution failedprotected String getDispatcherPath(org.apache.struts.tiles.ComponentDefinition definition, HttpServletRequest request) throws Exception
definition
- the Tiles definition to renderrequest
- current HTTP requestException
- if preparations failed