Generated by
JDiff

org.springframework.web.servlet.support Documentation Differences

This file contains all the changes in documentation in the package org.springframework.web.servlet.support as colored differences. Deletions are shown like this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.

Class RequestContext

Context holder for request-specific state, like current web application context, current locale, current theme, and potential binding errors. Provides easy access to localized messages and Errors instances.

Suitable for exposition to views, and usage within JSP's "useBean" tag, JSP scriptlets, JSTL EL, Velocity templates, etc. Necessary for views that do not have access to the servlet request, like Velocity templates.

Can be instantiated manually, or automatically exposed to views as model attribute via AbstractView's "requestContextAttribute" property.

Will also work outside of DispatcherServlet requests, accessing the root WebApplicationContext and using an appropriate fallback for the locale (the HttpServletRequest's primary locale). @author Juergen Hoeller @since 03.03.2003 @see org.springframework.web.servlet.DispatcherServlet @see org.springframework.web.servlet.view.AbstractView#setRequestContextAttribute @see org.springframework.web.servlet.view.UrlBasedViewResolver#setRequestContextAttribute @see #getFallbackLocale()

Class RequestContext, constructor RequestContext(HttpServletRequest, Map<String, Object>)

Create a new RequestContext for the given request, using the given model attributes for Errors retrieval.

This works with all View implementations. It will typically be used by View implementations.

Will only work within a DispatcherServlet request. Pass in a ServletContext to be able to fallback to the root WebApplicationContext. @param request current HTTP request @param model the model attributes for the current view (can be null, using the request attributes for Errors retrieval) @see org.springframework.web.servlet.DispatcherServlet @see #RequestContext(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.ServletContext, Map)

Class RequestContext, String getContextUrl(String, Map<String, ?>)

Return a context-aware URl for the given relative URL with placeholders (named keys with braces {}). For example, send in a relative URL foo/{bar}?spam={spam} and a parameter map {bar=baz,spam=nuts} and the result will be [contextpath]/foo/baz?spam=nuts. @param relativeUrl the relative URL part @param params a map of parameters to insert as placeholders in the url @return a URL that points back to the server with an absolute path (also URL-encoded accordingly)
Class RequestContext, String getPathToServlet()

Return the path to URL mappings within the current servlet including the the context path and the servlet path of the original request. This is useful for building links to other resources within the application where a a servlet mapping of the style {@code "/main/*"} is used.

Delegates to the UrlPathHelper for decoding the context path. @see javax.servlet.http.HttpServletRequest#getContextPath @see javax.servlet.http.HttpServletRequest#getServletPath() @see #getUrlPathHelper

Class RequestContext, RequestDataValueProcessor getRequestDataValueProcessor()

Return the RequestDataValueProcessor instance to use obtained from the the WebApplicationContext under the name {@code "requestDataValueProcessor"}. Or {@code null} if no matching bean was found.