exposeLocalizationContext(HttpServletRequest request,
MessageSource messageSource)
Exposes JSTL-specific request attributes specifying locale
and resource bundle for JSTL's formatting and message tags,
using Spring's locale and MessageSource.
getJstlAwareMessageSource(ServletContext servletContext,
MessageSource messageSource)
Checks JSTL's "javax.servlet.jsp.jstl.fmt.localizationContext"
context-param and creates a corresponding child message source,
with the provided Spring-defined MessageSource as parent.
Checks JSTL's "javax.servlet.jsp.jstl.fmt.localizationContext"
context-param and creates a corresponding child message source,
with the provided Spring-defined MessageSource as parent.
Parameters:
servletContext - the ServletContext we're running in
(to check JSTL-related context-params in web.xml)
messageSource - the MessageSource to expose, typically
the ApplicationContext of the current DispatcherServlet
Returns:
the MessageSource to expose to JSTL; first checking the
JSTL-defined bundle, then the Spring-defined MessageSource
Exposes JSTL-specific request attributes specifying locale
and resource bundle for JSTL's formatting and message tags,
using Spring's locale and MessageSource.
Parameters:
request - the current HTTP request
messageSource - the MessageSource to expose,
typically the current ApplicationContext (may be null)