How to set Locale ?
I would like to let user choose thier own language. But i don't know how to set Locale in LogonFormController (extends SimpleFormController). Any suggestion?
RequestContextUtils.getLocale(Request).getLanguage ()= th
RequestContextUtils.getLocale(Request).getCountry( ) = empty string
So currency format shows improper. Then I would like to set a default Locale and let user change it as well. Could you please give me some example?
Thank you in advance.
You may review countries sample from Spring distribution. It shows how to configure/use multiple Locales.
Could you please send me some link? I tried to check it in http://www.springframework.org/demo.html -> countries But it can't accessed.
Countires source is included in Spring distribution. Look inside $SPRING_ROOT/samples/countries.