Results 1 to 4 of 4

Thread: How to set Locale ?

  1. #1
    Join Date
    Nov 2004
    Posts
    2

    Default 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?

    Since
    RequestContextUtils.getLocale(Request).getLanguage ()= th
    But
    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.
    A

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    You may review countries sample from Spring distribution. It shows how to configure/use multiple Locales.
    HTH
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

  3. #3
    Join Date
    Nov 2004
    Posts
    2

    Default

    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.
    A

  4. #4
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    Countires source is included in Spring distribution. Look inside $SPRING_ROOT/samples/countries.
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Similar Threads

  1. Sharing locale between JSF and Spring
    By xenrik in forum Web
    Replies: 2
    Last Post: Aug 1st, 2008, 11:04 AM
  2. Replies: 4
    Last Post: May 12th, 2006, 02:50 AM
  3. Replies: 1
    Last Post: Sep 4th, 2005, 12:24 AM
  4. LOCALE de-mystified...
    By chcmtl in forum Web
    Replies: 0
    Last Post: Jun 6th, 2005, 04:16 PM
  5. Replies: 2
    Last Post: Nov 27th, 2004, 06:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •