| org.springframework.web.servlet.view.AbstractView org.springframework.web.servlet.view.AbstractUrlBasedView org.springframework.web.servlet.view.AbstractTemplateView
All known Subclasses: org.springframework.web.servlet.view.freemarker.FreeMarkerView, org.springframework.web.servlet.view.velocity.VelocityView,
Method Summary | |
protected void | applyContentType(HttpServletResponse response) Apply this view's content type as specified in the "contentType"
bean property to the given response.
When running on Servlet 2.4, only applies the view's contentType
if no content type has been set on the response before. | final protected void | renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) | abstract protected void | renderMergedTemplateModel(Map model, HttpServletRequest request, HttpServletResponse response) Subclasses must implement this method to actually render the view. | public void | setAllowRequestOverride(boolean allowRequestOverride) Set whether HttpServletRequest attributes are allowed to override (hide)
controller generated model attributes of the same name. | public void | setAllowSessionOverride(boolean allowSessionOverride) Set whether HttpSession attributes are allowed to override (hide)
controller generated model attributes of the same name. | public void | setExposeRequestAttributes(boolean exposeRequestAttributes) Set whether all request attributes should be added to the
model prior to merging with the template. | public void | setExposeSessionAttributes(boolean exposeSessionAttributes) Set whether all HttpSession attributes should be added to the
model prior to merging with the template. | public void | setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) Set whether to expose a RequestContext for use by Spring's macro library,
under the name "springMacroRequestContext". |
SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE | final public static String SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE(Code) | | Variable name of the RequestContext instance in the template model,
available to Spring's macros: e.g. for creating BindStatus objects.
|
applyContentType | protected void applyContentType(HttpServletResponse response)(Code) | | Apply this view's content type as specified in the "contentType"
bean property to the given response.
When running on Servlet 2.4, only applies the view's contentType
if no content type has been set on the response before. This allows
handlers to override the default content type beforehand.
Parameters: response - current HTTP response See Also: AbstractTemplateView.setContentType |
renderMergedTemplateModel | abstract protected void renderMergedTemplateModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception(Code) | | Subclasses must implement this method to actually render the view.
Parameters: model - combined output Map, with request attributes andsession attributes merged into it if required Parameters: request - current HTTP request Parameters: response - current HTTP response throws: Exception - if rendering failed |
setAllowRequestOverride | public void setAllowRequestOverride(boolean allowRequestOverride)(Code) | | Set whether HttpServletRequest attributes are allowed to override (hide)
controller generated model attributes of the same name. Default is "false",
which causes an exception to be thrown if request attributes of the same
name as model attributes are found.
|
setAllowSessionOverride | public void setAllowSessionOverride(boolean allowSessionOverride)(Code) | | Set whether HttpSession attributes are allowed to override (hide)
controller generated model attributes of the same name. Default is "false",
which causes an exception to be thrown if session attributes of the same
name as model attributes are found.
|
setExposeRequestAttributes | public void setExposeRequestAttributes(boolean exposeRequestAttributes)(Code) | | Set whether all request attributes should be added to the
model prior to merging with the template. Default is "false".
|
setExposeSessionAttributes | public void setExposeSessionAttributes(boolean exposeSessionAttributes)(Code) | | Set whether all HttpSession attributes should be added to the
model prior to merging with the template. Default is "false".
|
setExposeSpringMacroHelpers | public void setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers)(Code) | | Set whether to expose a RequestContext for use by Spring's macro library,
under the name "springMacroRequestContext". Default is "false".
Currently needed for Spring's Velocity and FreeMarker default macros.
Note that this is not required for templates that use HTML
forms unless you wish to take advantage of the Spring helper macros.
See Also: AbstractTemplateView.SPRING_MACRO_REQUEST_CONTEXT_ATTRIBUTE |
Fields inherited from org.springframework.web.servlet.view.AbstractView | final public static String DEFAULT_CONTENT_TYPE(Code)(Java Doc)
|
|
|