> -----Original Message-----
> From: Tim Penhey [mailto:[EMAIL PROTECTED]
> Sent: 17 June 2004 08:51
> To: Struts-User
> Subject: Setting locale for the webapp
> 
> 
> I have a web application where I want to have the locale 
> defined in the deployment
> descriptor somewhere.
> 
> The web application acts as the GUI for a system that will be 
> sold to clients.  The
> clients will then have their own tomcat / DB instance 
> running.  I am using the struts I18N
> to allow multiple language versions of the software, but I 
> would like to define the locale
> for the installation rather than by the users browser languages.
> 
> Any clues on how to do this?
> 
> Thanks,
> Tim

You may need to set the default locale explicitly. I got a feeling
it will be in the web.xml as a ActionServlet init parameter.

If not you can change the Struts Locale dynamically for a HttpSession.
Therefore you could program a ServletFilter.

http://www.anassina.com/struts/i18n/i18n.html

--
Peter Pilgrim
Operations/IT - Credit Suisse First Boston, 
10 South Colonnade, London E14 4QJ, United Kingdom
Tel: +44 (0)207 883 4447



==============================================================================
This message is for the sole use of the intended recipient. If you received
this message in error please delete it and notify us. If this message was
misdirected, CSFB does not waive any confidentiality or privilege. CSFB
retains and monitors electronic communications sent through its network.
Instructions transmitted over this system are not binding on CSFB until they
are confirmed by us. Message transmission is not guaranteed to be secure.
==============================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to