org.springframework.web.servlet.view.tiles
Class TilesJstlView

java.lang.Object
  extended byorg.springframework.context.support.ApplicationObjectSupport
      extended byorg.springframework.web.context.support.WebApplicationObjectSupport
          extended byorg.springframework.web.servlet.view.AbstractView
              extended byorg.springframework.web.servlet.view.AbstractUrlBasedView
                  extended byorg.springframework.web.servlet.view.InternalResourceView
                      extended byorg.springframework.web.servlet.view.tiles.TilesView
                          extended byorg.springframework.web.servlet.view.tiles.TilesJstlView
All Implemented Interfaces:
ApplicationContextAware, BeanNameAware, View

public class TilesJstlView
extends TilesView

Specialization of TilesView for JSTL pages, i.e. 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)

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
TilesJstlView()
           
 
Method Summary
protected  void exposeModelAsRequestAttributes(java.util.Map model, javax.servlet.http.HttpServletRequest request)
          Expose the model objects in the given map as request attributes.
 
Methods inherited from class org.springframework.web.servlet.view.tiles.TilesView
initApplicationContext, renderMergedOutputModel
 
Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView
getUrl, setUrl
 
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, getBeanName, getContentType, getStaticAttributes, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, requiredContextClass
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TilesJstlView

public TilesJstlView()
Method Detail

exposeModelAsRequestAttributes

protected void exposeModelAsRequestAttributes(java.util.Map model,
                                              javax.servlet.http.HttpServletRequest request)
                                       throws javax.servlet.ServletException
Description copied from class: InternalResourceView
Expose the model objects in the given map as request attributes. Names will be taken from the map. This method is suitable for all resources reachable by RequestDispatcher.

Overrides:
exposeModelAsRequestAttributes in class InternalResourceView
Parameters:
model - Map of model objects to expose
request - current HTTP request
Throws:
javax.servlet.ServletException


Copyright (C) 2003-2004 The Spring Framework Project.