views:

438

answers:

0

Hello,

I have setup default locale in my LocaleResolver configuration, so when I ask my RequestContext for locale I get what I've setup there.

What I want is to be able to retreive locale by calling HttpServletRequest.getLocale(). I know I can use RequestContextUtils.getLocale(), but I need to do this from JSPs, where I am not allowed to call scriplets, only EL.

Maybe there are any standard Spring's features, besides making HttpServletRequestWrapper to override getLocale method?