
Prof. Ismael H. F. Santos
- ismael@tecgraf.puc-rio.br
2
View Resolving: Implementation
Classes
InternalResourceViewResolver
A convenience
subclass of UrlBasedViewResolver that
supports InternalResourceView (i.e. Servlets and JSPs),
and subclasses such as JstlView and TilesView. The view class for all views generated by this
resolver can be specified via setViewClass(..). See the Javadocs for the UrlBasedViewResolver
class for details.
Simple implementation
of ViewResolver that interprets a view name as bean name in the current application context,
i.e. in the XML file of the executing DispatcherServlet. This resolver can be handy for small
applications, keeping all definitions ranging from controllers to views in the
same place.
UrlBasedViewResolver
A simple
implementation of the ViewResolver
interface that effects the direct resolution of symbolic view names
to URLs, without an explicit mapping definition. This is appropriate if your symbolic names match
the names of your view resources in a straightforward manner, without the need for
arbitrary mappings.
ResourceBundleViewResolver
An implementation of
ViewResolver that uses bean definitions
in a ResourceBundle, specified by the bundle basename. The bundle is
typically defined in a properties file, located in the classpath. The
default file name is views.properties.
XmlViewResolver
An implementation of
ViewResolver that accepts a
configuration file written in XML with the same DTD as Spring's
XML bean factories. The default configuration file is /WEB-INF/views.xml.
AbstractCachingViewResolver
An abstract view
resolver which takes care of caching views. Often views need preparation before they can be
used, extending this view resolver provides caching of views.
VelocityViewResolver
/ FreeMarkerViewResolver
A convenience
subclass of UrlBasedViewResolver that supports VelocityView (i.e. Velocity templates) or
FreeMarkerView respectively and custom subclasses of them.
From
http://www.springframework.org/docs/reference/mvc.html#mvc-servlet
