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.
|
Java Source File Name | Type | Comment |
AbstractCachingViewResolver.java | Class | Convenient base class for
org.springframework.web.servlet.ViewResolver implementations. |
AbstractTemplateView.java | Class | 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.
JSP/JSTL and other view technologies automatically have access to the
HttpServletRequest object and thereby the request/session attributes
for the current user. |
AbstractTemplateViewResolver.java | Class | Abstract base class for template view resolvers,
in particular for Velocity and FreeMarker views. |
AbstractUrlBasedView.java | Class | Abstract base class for URL-based views. |
AbstractView.java | Class | Abstract base class for
org.springframework.web.servlet.View implementations. |
BeanNameViewResolver.java | Class | Simple implementation of ViewResolver that interprets a view name
as bean name in the current application context, i.e. |
DefaultRequestToViewNameTranslator.java | Class | Simply transforms the URI of the incoming request into the view name. |
InternalResourceView.java | Class | Wrapper for a JSP or other resource within the same web application.
Exposes model objects as request attributes and forwards the request to
the specified resource URL using a RequestDispatcher.
A URL for this view is supposed to specify a resource within the web
application, suitable for RequestDispatcher's forward or
include method.
If operating within an already included request or within a response that
has already been committed, this view will fall back to an include instead of
a forward. |
InternalResourceViewResolver.java | Class | Convenient subclass of
UrlBasedViewResolver that supports
InternalResourceView (i.e. |
JstlView.java | Class | Specialization of InternalResourceView for JSTL pages,
i.e. |
RedirectView.java | Class | View that redirects to an absolute, context relative, or current request
relative URL, exposing all model attributes as HTTP query parameters.
A URL for this view is supposed to be a HTTP redirect URL, i.e.
suitable for HttpServletResponse's sendRedirect method, which
is what actually does the redirect if the HTTP 1.0 flag is on, or via sending
back an HTTP 303 code - if the HTTP 1.0 compatibility flag is off.
Note that while the default value for the "contextRelative" flag is off,
you will probably want to almost always set it to true. |
ResourceBundleViewResolver.java | Class | org.springframework.web.servlet.ViewResolver implementation
that uses bean definitions in a
ResourceBundle , specified by
the bundle basename.
The bundle is typically defined in a properties file, located in
the class path. |
UrlBasedViewResolver.java | Class | Simple implementation of the
org.springframework.web.servlet.ViewResolver interface, allowing for direct resolution of symbolic view names to URLs,
without explicit mapping definition. |
XmlViewResolver.java | Class | Implementation of ViewResolver that uses bean definitions in an
XML file, specified by resource location. |