| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.web.servlet.support.JstlUtils
public abstract class JstlUtils
Helper class for preparing JSTL views, in particular for exposing a JSTL localization context.
| Constructor Summary | |
|---|---|
| JstlUtils() | |
| Method Summary | |
|---|---|
| static void | 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. | 
| static void | exposeLocalizationContext(RequestContext requestContext)Exposes JSTL-specific request attributes specifying locale and resource bundle for JSTL's formatting and message tags, using Spring's locale and MessageSource. | 
| static 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. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JstlUtils()
| Method Detail | 
|---|
public static MessageSource getJstlAwareMessageSource(ServletContext servletContext,
                                                      MessageSource messageSource)
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
ApplicationContext
public static void exposeLocalizationContext(HttpServletRequest request,
                                             MessageSource messageSource)
request - the current HTTP requestmessageSource - the MessageSource to expose,
 typically the current ApplicationContext (may be null)exposeLocalizationContext(RequestContext)public static void exposeLocalizationContext(RequestContext requestContext)
requestContext - the context for the current HTTP request,
 including the ApplicationContext to expose as MessageSource| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||