> -----Original Message----- > From: Pilgrim, Peter [mailto:[EMAIL PROTECTED] > Sent: 17 June 2004 09:53 > To: 'Struts Users Mailing List' > Subject: RE: Setting locale for the webapp > > > -----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 >
Thanks Peter. That page looks quite interesting. I have been having some challenges with UTF-8 vs ISO 8859-1 and JDOM SAXBuilder recently, and I am most likely going to change all pages to UTF-8 to handle it. Tim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]