Convenient subclass of
UrlBasedViewResolver that supports
InternalResourceView (i.e. Servlets and JSPs) and subclasses
such as
JstlView and
org.springframework.web.servlet.view.tiles.TilesView .
The view class for all views generated by this resolver can be specified
via
InternalResourceViewResolver.setViewClass . See UrlBasedViewResolver's javadoc for details.
BTW, it's good practice to put JSP files that just serve as views under
WEB-INF, to hide them from direct access (e.g. via a manually entered URL).
Only controllers will be able to access them then.
Note: When chaining ViewResolvers, an InternalResourceViewResolver
always needs to be last, as it will attempt to resolve any view name,
no matter whether the underlying resource actually exists.
author: Juergen Hoeller since: 17.02.2003 See Also: InternalResourceViewResolver.setViewClass See Also: InternalResourceViewResolver.setPrefix See Also: InternalResourceViewResolver.setSuffix See Also: InternalResourceViewResolver.setRequestContextAttribute See Also: InternalResourceView See Also: JstlView See Also: org.springframework.web.servlet.view.tiles.TilesView |