org.springframework.web.servlet.support
Class JstlUtils.SpringLocalizationContext

java.lang.Object
  extended by javax.servlet.jsp.jstl.fmt.LocalizationContext
      extended by org.springframework.web.servlet.support.JstlUtils.SpringLocalizationContext
Enclosing class:
JstlUtils

private static class JstlUtils.SpringLocalizationContext
extends javax.servlet.jsp.jstl.fmt.LocalizationContext

Spring-specific LocalizationContext adapter that merges session-scoped JSTL LocalizationContext/Locale attributes with the local Spring request context.


Field Summary
private  MessageSource messageSource
           
private  javax.servlet.http.HttpServletRequest request
           
 
Constructor Summary
JstlUtils.SpringLocalizationContext(MessageSource messageSource, javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 java.util.Locale getLocale()
           
 java.util.ResourceBundle getResourceBundle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messageSource

private final MessageSource messageSource

request

private final javax.servlet.http.HttpServletRequest request
Constructor Detail

JstlUtils.SpringLocalizationContext

public JstlUtils.SpringLocalizationContext(MessageSource messageSource,
                                           javax.servlet.http.HttpServletRequest request)
Method Detail

getResourceBundle

public java.util.ResourceBundle getResourceBundle()
Overrides:
getResourceBundle in class javax.servlet.jsp.jstl.fmt.LocalizationContext

getLocale

public java.util.Locale getLocale()
Overrides:
getLocale in class javax.servlet.jsp.jstl.fmt.LocalizationContext