My blog has moved!

You will be automatically redirected to the new address. If that does not occur, visit
http://utku-utkan.appspot.com/
and update your bookmarks.

Pages

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.

${sessionScope['org.springframework.web.servlet.i18n.SessionLocaleResolver.LOCALE']}

1 comment:

Anonymous said...

thanks.