I am using Spring 3.1 and want to find the locale active for the current user is there a way to grab the locale directly without being forced to pass it from the controller
It depends on where you have configured to store the locale, in session or in cookie?
In my application I have configured to store the user locale in its session with below mentioned configuration.
/WEB-INF/i18n/labels
/WEB-INF/i18n/messages
/WEB-INF/i18n/include
If you have done somthing like this then you can easily retrieve the locale parameter from the session.
Hope this helps you.
Cheers.