org.springframework.web.servlet.view.tiles
Class TilesJstlView
java.lang.Object
org.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
org.springframework.web.servlet.view.tiles.TilesJstlView
- All Implemented Interfaces:
- BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View
public class TilesJstlView
- extends TilesView
Specialization of TilesView for JSTL pages; Tiles pages that
use the JSP Standard Tag Library.
Exposes JSTL-specific request attributes specifying locale
and resource bundle for JSTL's formatting and message tags,
using Spring's locale and message source.
This is a separate class mainly to avoid JSTL dependencies
in TilesView itself.
- Since:
- 20.08.2003
- Author:
- Juergen Hoeller
- See Also:
JstlUtils.exposeLocalizationContext(javax.servlet.http.HttpServletRequest, org.springframework.context.MessageSource)
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, exposeModelAsRequestAttributes, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute |
TilesJstlView
public TilesJstlView()
initApplicationContext
protected void initApplicationContext()
- Description copied from class:
ApplicationObjectSupport
- Subclasses can override this for custom initialization behavior.
Gets called by
setApplicationContext
after setting the context instance.
Note: Does not get called on reinitialization of the context
but rather just on first initialization of this object's context reference.
- Overrides:
initApplicationContext
in class TilesView
- See Also:
ApplicationObjectSupport.setApplicationContext(org.springframework.context.ApplicationContext)
exposeHelpers
protected void exposeHelpers(HttpServletRequest request)
throws Exception
- Description copied from class:
InternalResourceView
- Expose helpers unique to each rendering operation. This is necessary so that
different rendering operations can't overwrite each other's contexts etc.
Called by InternalResourceView.renderMergedOutputModel(Map, HttpServletRequest, HttpServletResponse)
.
The default implementation is empty. This method can be overridden to add
custom helpers as request attributes.
- Overrides:
exposeHelpers
in class InternalResourceView
- Parameters:
request
- current HTTP request
- Throws:
Exception
- if there's a fatal error while we're adding attributes- See Also:
InternalResourceView.renderMergedOutputModel(java.util.Map, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
,
JstlView.exposeHelpers(javax.servlet.http.HttpServletRequest)
,
exposeHelpers(javax.servlet.http.HttpServletRequest)
Copyright © 2002-2007 The Spring Framework.