You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vincent Aumont <vi...@vsl.ca> on 2002/05/31 19:17:36 UTC

locale in struts 1.1b

After I switched to struts 1.1b (from 1.0.2) the bean:message tag
stopped displaying the messages in the browser's locale.
It seems that the locale  struts defines in the session is the VM's
locale, not the browser's, as shown in the following code sample:

public ActionForward someAction(...)
   {
    System.out.println(getLocale(request));  // prints en_US
    System.out.println(request.getLocale()); // prints 'fr'
}

After looking at the code I added the following element to my
struts-config.xml file:

  <controller>
    <set-property property="locale" value="true"/>
  </controller>

but it did not do the trick.

Thanks for your help,

-Vincent.


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>