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()
|
|
|
|
|
|