Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 72530 invoked from network); 28 Aug 2003 15:10:20 -0000 Received: from unknown (HELO mustang.mpi.com) (63.244.250.132) by daedalus.apache.org with SMTP; 28 Aug 2003 15:10:20 -0000 Received: from lightning.mpi.com (lightning.mpi.com [63.244.252.11]) by mustang.mpi.com (Switch-2.2.6/Switch-2.2.6) with ESMTP id h7SF8BI15673 for ; Thu, 28 Aug 2003 11:08:11 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be1.corp.mpi.com [63.244.252.30]) by lightning.mpi.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id h7SF8la9007592 for ; Thu, 28 Aug 2003 11:09:12 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: container default local problem Date: Thu, 28 Aug 2003 11:08:40 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8A6EAE9@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: container default local problem Thread-Index: AcNtcpUJi2K5qS2KRZKbWzGQ41pyUgAA6spQ From: "Shapira, Yoav" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, You probably want to use something like // Set the default locale to pre-defined locale Locale.setDefault(Locale.FRENCH); See other ways here: http://javaalmanac.com/egs/java.util/SetDefLocale.html Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: meissa.Sakho@assetmanagement.natexis.fr >[mailto:meissa.Sakho@assetmanagement.natexis.fr] >Sent: Thursday, August 28, 2003 10:41 AM >To: tomcat-user@jakarta.apache.org >Subject: container default local problem > > >hi all, > >I'm tearing my hair off with the locale value >of the servlet container. > >I'm using tomcat4.1.18 on linux mandrake. >the machine is configured on french language. > >I'm suprised to get the us(instead of fr) locale on my web applications. > >I've written a servlet to test the user locale variable and >the container local variable. > >Here is the code to retrieve the user preferred locale >and the container locale variable. > >Locale preferredLocale =3D request.getLocale(); >out.println("

The user's preffered Locale is " + preferredLocale + >"

"); > >// Get the container's default locale >Locale servletContainerLocale =3D Locale.getDefault(); > >the first line give me fr while the second gives me us. > >Can someone tells me where to set default locale value of the container. > >thanks in advance > >Meissa > >L'integrite de ce message n'etant pas assuree sur internet, Natexis >Banques Populaires ne peut etre tenu responsable de >son contenu. Toute utilisation ou diffusion non autorisee est >interdite. Si vous n'etes pas destinataire de ce message, merci de le= >detruire et d'avertir l'expediteur. > >The integrity of this message cannot be guaranteed >on the Internet. Natexis Banques Populaires can not therefore be >considered responsible for the contents.Any unauthorized use or >dissemination is prohibited. >If you are not the intended recipient of this message, then please delete >it and >notify the sender. This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you.