aspose file tools*
The moose likes Tomcat and the fly likes i18n language support in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "i18n language support in Tomcat" Watch "i18n language support in Tomcat" New topic
Author

i18n language support in Tomcat

Michael Quentel
Greenhorn

Joined: Oct 06, 2008
Posts: 1
Regarding i18n (internationalisation, locales, encodings, etc)...how does one programatically check what languages/charsets the container supports?

What I'd like to do is have my servlet take the request header information, as in:

request.getHeader("Accept-Language");
request.getHeader("Accept-Charset");

then, using that data, check to see if the container supports these charsets/languages/encodings.

I see that Tomcat has JARs related to i18n in the following path:

$TOMCAT_HOME/common/i18n

I was hoping to find a solution more elegant than checking for File.exists() on the JARs.

Any advice, please?

Thanks.

--Mike Quentel
(previously have posted to JavaRanch as Mike Quentel, but I cannot remember my old password; password rules here leave much to be desired; would rather make my own password).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i18n language support in Tomcat