${sessionScope['org.springframework.web.servlet.i18n.SessionLocaleResolver.LOCALE']}
Wednesday, April 22, 2009
How to Get Spring MVC Locale via EL
For some stupid reason, today I just needed to get the current Locale which is determined by the Spring's org.springframework.web.servlet.i18n.SessionLocaleResolver class via EL. Well, as the name implies this Resolver stores the current Locale in Http Session and you can access it with the following EL expression.
Subscribe to:
Post Comments (Atom)
1 comment:
thanks.
Post a Comment