Package org.springframework.web.servlet.view
Provides standard View and ViewResolver implementations, including abstract base classes for custom implementations.
Application developers don't usually need to implement views, as the framework provides standard views for JSPs, Velocity, XSLT, etc. However, the ability to implement custom views easily by subclassing the AbstractView class in this package can be very helpful if an application has unusual view requirements.
Class Summary Class Description AbstractCachingViewResolver Convenient base class forViewResolver
implementations.AbstractTemplateView Adapter base class for template-based view technologies such as Velocity and FreeMarker, with the ability to use request and session attributes in their model and the option to expose helper objects for Spring's Velocity/FreeMarker macro library.AbstractTemplateViewResolver Abstract base class for template view resolvers, in particular for Velocity and FreeMarker views.AbstractUrlBasedView Abstract base class for URL-based views.AbstractView Abstract base class forView
implementations.BeanNameViewResolver A simple implementation ofViewResolver
that interprets a view name as a bean name in the current application context, i.e.ContentNegotiatingViewResolver Implementation ofViewResolver
that resolves a view based on the request file name orAccept
header.DefaultRequestToViewNameTranslator RequestToViewNameTranslator
that simply transforms the URI of the incoming request into a view name.InternalResourceView Wrapper for a JSP or other resource within the same web application.InternalResourceViewResolver Convenient subclass ofUrlBasedViewResolver
that supportsInternalResourceView
(i.e.JstlView Specialization ofInternalResourceView
for JSTL pages, i.e.RedirectView View that redirects to an absolute, context relative, or current request relative URL.ResourceBundleViewResolver AViewResolver
implementation that uses bean definitions in aResourceBundle
, specified by the bundle basename.UrlBasedViewResolver Simple implementation of theViewResolver
interface, allowing for direct resolution of symbolic view names to URLs, without explicit mapping definition.ViewResolverComposite AViewResolver
that delegates to others.XmlViewResolver AViewResolver
implementation that uses bean definitions in a dedicated XML file for view definitions, specified by resource location.