Convenient subclass of {@link UrlBasedViewResolver} that supports{@link InternalResourceView} (i.e. Servlets and JSPs) and subclassessuch as {@link JstlView} and{@link org.springframework.web.servlet.view.tiles.TilesView}.
The view class for all views generated by this resolver can be specified via {@link #setViewClass}. See {@link UrlBasedViewResolver}'s javadoc for details. The default is {@link InternalResourceView}, or {@link JstlView} if theJSTL API is present.
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 #setViewClass
@see #setPrefix
@see #setSuffix
@see #setRequestContextAttribute
@see InternalResourceView
@see JstlView
@see org.springframework.web.servlet.view.tiles.TilesView