Jul 4th, 2011, 02:48 AM
Getting locale in MessageSource that extend ApplicationContextAware.
I have a class that implements applicationcontextaware that used to override the messageResource.getMessage feature. However now i have problem on getting the locale from the http://localhost:8080/test?lang=en. I have tried the LocaleContextHolder but it seems like getting the language from the browser itself rather than the param. And also i can't use RequestContextUtils.getLocale(request) as it need request which i dun not have. Any suggestion to deal with this ?
Thanks in advance.