Top Description Classes
module spring.webmvc

Package org.springframework.web.servlet.view

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

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, FreeMarker, 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

Modifier and TypeClass and Description
public abstract class
public abstract class
AbstractTemplateView

Adapter base class for template-based view technologies such as FreeMarker, with the ability to use request and session attributes in their model and the option to expose helper objects for Spring's FreeMarker macro library.

public abstract class
AbstractTemplateViewResolver

Abstract base class for template view resolvers, in particular for FreeMarker views.

public abstract class
AbstractUrlBasedView

Abstract base class for URL-based views.

public abstract class
AbstractView

Abstract base class for org.springframework.web.servlet.View implementations.

public class
BeanNameViewResolver

A simple implementation of org.springframework.web.servlet.ViewResolver that interprets a view name as a bean name in the current application context, i.e. typically in the XML file of the executing DispatcherServlet or in a corresponding configuration class.

public class
ContentNegotiatingViewResolver

Implementation of ViewResolver that resolves a view based on the request file name or Accept header.

public class
DefaultRequestToViewNameTranslator

RequestToViewNameTranslator that simply transforms the URI of the incoming request into a view name.

public class
InternalResourceView

Wrapper for a JSP or other resource within the same web application.

public class
InternalResourceViewResolver

Convenient subclass of UrlBasedViewResolver that supports InternalResourceView (i.e. Servlets and JSPs) and subclasses such as JstlView.

public class
JstlView

Specialization of InternalResourceView for JSTL pages, i.e. JSP pages that use the JSP Standard Tag Library.

public class
RedirectView

View that redirects to an absolute, context relative, or current request relative URL.

public class
ResourceBundleViewResolver

Deprecated as of 5.3, in favor of Spring's common view resolver variants and/or custom resolver implementations
A org.springframework.web.servlet.ViewResolver implementation that uses bean definitions in a ResourceBundle, specified by the bundle basename.
public class
UrlBasedViewResolver

Simple implementation of the org.springframework.web.servlet.ViewResolver interface, allowing for direct resolution of symbolic view names to URLs, without explicit mapping definitions.

public class
public class
XmlViewResolver

Deprecated as of 5.3, in favor of Spring's common view resolver variants and/or custom resolver implementations
A org.springframework.web.servlet.ViewResolver implementation that uses bean definitions in a dedicated XML file for view definitions, specified by resource location.