| java.lang.Object org.springframework.web.servlet.support.JstlUtils
JstlUtils | abstract public class JstlUtils (Code) | | Helper class for preparing JSTL views,
in particular for exposing a JSTL localization context.
author: Juergen Hoeller since: 20.08.2003 |
REQUEST_SCOPE_SUFFIX | final public static String REQUEST_SCOPE_SUFFIX(Code) | | |
exposeLocalizationContext | public static void exposeLocalizationContext(HttpServletRequest request, MessageSource messageSource)(Code) | | Exposes JSTL-specific request attributes specifying locale
and resource bundle for JSTL's formatting and message tags,
using Spring's locale and message source.
Parameters: request - current HTTP request Parameters: messageSource - the MessageSource to expose,typically the current application context |
getJstlAwareMessageSource | public static MessageSource getJstlAwareMessageSource(ServletContext servletContext, MessageSource messageSource)(Code) | | 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) Parameters: messageSource - the MessageSource to expose, typicallythe ApplicationContext of the current DispatcherServlet the MessageSource to expose to JSTL; first checking theJSTL-defined bundle, then the Spring-defined MessageSource See Also: org.springframework.context.ApplicationContext |
|
|