tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Brown" <>
Subject Re: localization recommendation for tomcat
Date Mon, 09 Dec 2002 23:04:37 GMT
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 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, 

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message