|
spring-struts | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractUrlBasedView
org.springframework.web.servlet.view.InternalResourceView
org.springframework.web.servlet.view.tiles.TilesView
@Deprecated public class TilesView
View implementation that retrieves a Tiles definition. The "url" property is interpreted as name of a Tiles definition.
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
org.springframework.web.servlet.view.tiles2.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| Field Summary | |
|---|---|
static java.lang.String |
PATH_ATTRIBUTE
Deprecated. Name of the attribute that will override the path of the layout page to render. |
| Fields inherited from class org.springframework.web.servlet.view.AbstractView |
|---|
DEFAULT_CONTENT_TYPE |
| Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
|---|
logger |
| Fields inherited from interface org.springframework.web.servlet.View |
|---|
PATH_VARIABLES, RESPONSE_STATUS_ATTRIBUTE |
| Constructor Summary | |
|---|---|
TilesView()
Deprecated. |
|
| Method Summary | |
|---|---|
protected void |
executeController(org.apache.struts.tiles.Controller controller,
org.apache.struts.tiles.ComponentContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. Execute the given Tiles controller. |
protected org.apache.struts.tiles.ComponentContext |
getComponentContext(org.apache.struts.tiles.ComponentDefinition definition,
javax.servlet.http.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,
javax.servlet.http.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,
javax.servlet.http.HttpServletRequest request)
Deprecated. Determine and initialize the Tiles component controller for the given Tiles definition, if any. |
protected java.lang.String |
getDispatcherPath(org.apache.struts.tiles.ComponentDefinition definition,
javax.servlet.http.HttpServletRequest request)
Deprecated. Determine the dispatcher path for the given Tiles definition, i.e. |
protected void |
initApplicationContext()
Deprecated. |
protected java.lang.String |
prepareForRendering(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.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(javax.servlet.http.HttpServletRequest request,
java.lang.String path)
Deprecated. Set the path of the layout page to render. |
| Methods inherited from class org.springframework.web.servlet.view.InternalResourceView |
|---|
exposeForwardRequestAttributes, exposeHelpers, getRequestDispatcher, getRequestToExpose, initServletContext, isContextRequired, renderMergedOutputModel, setAlwaysInclude, setExposeContextBeansAsAttributes, setExposedContextBeanNames, setExposeForwardAttributes, setPreventDispatchLoop, useInclude |
| Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView |
|---|
afterPropertiesSet, checkResource, getUrl, isUrlRequired, setUrl, toString |
| Methods inherited from class org.springframework.web.servlet.view.AbstractView |
|---|
addStaticAttribute, createMergedOutputModel, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, isExposePathVariables, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setExposePathVariables, setRequestContextAttribute, writeToResponse |
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
|---|
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, setServletContext |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
|---|
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PATH_ATTRIBUTE
setPath(javax.servlet.http.HttpServletRequest, java.lang.String)| Constructor Detail |
|---|
public TilesView()
| Method Detail |
|---|
public static void setPath(javax.servlet.http.HttpServletRequest request,
java.lang.String path)
request - current HTTP requestpath - the path of the layout pagePATH_ATTRIBUTE
protected void initApplicationContext()
throws org.springframework.context.ApplicationContextException
initApplicationContext in class org.springframework.context.support.ApplicationObjectSupportorg.springframework.context.ApplicationContextException
protected java.lang.String prepareForRendering(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
prepareForRendering in class org.springframework.web.servlet.view.InternalResourceViewjava.lang.Exception
protected org.apache.struts.tiles.ComponentDefinition getComponentDefinition(org.apache.struts.tiles.DefinitionsFactory factory,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
factory - the Tiles definitions factoryrequest - current HTTP request
java.lang.Exception
protected org.apache.struts.tiles.ComponentContext getComponentContext(org.apache.struts.tiles.ComponentDefinition definition,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
definition - the Tiles definition to renderrequest - current HTTP request
java.lang.Exception - if preparations failed
protected org.apache.struts.tiles.Controller getController(org.apache.struts.tiles.ComponentDefinition definition,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
definition - the Tiles definition to renderrequest - current HTTP request
null if none
java.lang.Exception - if preparations failed
protected void executeController(org.apache.struts.tiles.Controller controller,
org.apache.struts.tiles.ComponentContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
controller - the component controller to executecontext - the component contextrequest - current HTTP requestresponse - current HTTP response
java.lang.Exception - if controller execution failed
protected java.lang.String getDispatcherPath(org.apache.struts.tiles.ComponentDefinition definition,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
definition - the Tiles definition to renderrequest - current HTTP request
java.lang.Exception - if preparations failed
|
spring-struts | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||