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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to