Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 77711 invoked from network); 10 Dec 2002 00:10:17 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 10 Dec 2002 00:10:17 -0000 Received: (qmail 3914 invoked by uid 97); 10 Dec 2002 00:11:11 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 3869 invoked by uid 97); 10 Dec 2002 00:11:10 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 3854 invoked by uid 98); 10 Dec 2002 00:11:10 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) References: <580F4ACFCD8F4E439B06B815110418C709EAE87A@xcup03.cup.hp.com> In-Reply-To: <580F4ACFCD8F4E439B06B815110418C709EAE87A@xcup03.cup.hp.com> From: "David Brown" To: "'tomcat-user@jakarta.apache.org'" Subject: Re: localization recommendation for tomcat Date: Mon, 09 Dec 2002 18:04:37 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <20021209230437.83D88BCD5@webitplanet.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N HAVENS,PETER (HP-Cupertino,ex3) writes: > I am looking for a recommendation for serving localized HTML content via > tomcat. I am looking to have Tomcat provide the most accurate HTML file > based on the locale of the browser. The Apache web server handles this > nicely and I would like to implement the same functionality in tomcat 4.1.x. > For example, when a request comes in for index.html and the browser locale > is french [fr], if the server has an index.html.fr file and an index.html.en > file, I would like it to serve the French version. > > I am not looking for a complete solution but rather a pointer for a > developer. I have read a little about turbine services and servlets > filters. Can someone make a recommendation for the most applicable > technology for this feature? Hello Peter, java.util.Locale has methods for getting the local language and cultural stuff especially if used with ResourceBundle. hope this helps, david. -- To unsubscribe, e-mail: For additional commands, e-mail: