You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make SessionLocaleResolver's attribute name configurable [SPR-15450] #20011
I used org.springframework.web.servlet.i18n.SessionLocaleResolver to resolve LocaleContext , and found the attribute name of HttpSession is a constant value ( String LOCALE_SESSION_ATTRIBUTE_NAME = SessionLocaleResolver.class.getName() + ".LOCALE";) , and it still can't be changed in latest version of Spring WebMVC, thus , Is possible to change the attribute name of HttpSession for SessionLocaleResolver ?
Good point! I've introduced corresponding setLocaleAttributeName and setTimeZoneAttributeName methods on SessionLocaleResolver, allowing for customization, and will backport those to 4.3.8 as well.
Activity
spring-projects-issues commentedon Apr 13, 2017
Juergen Hoeller commented
Good point! I've introduced corresponding
setLocaleAttributeNameandsetTimeZoneAttributeNamemethods onSessionLocaleResolver, allowing for customization, and will backport those to 4.3.8 as well.