The browser can tell you the language that the system is setup for:
Accept-Language: en-us, en;q=0.50
This is from my Mozilla setup All modern browsers will return an Accept
Language string
Another question related to this, Are you telling me that all your jsp
pages have the actual content store
[EMAIL PROTECTED]]
> Sent: Monday, November 25, 2002 11:27 AM
> To: Tomcat Users List
> Subject: Re: help with multilingual JSP sites pls. using a Filter to
> rewrite the URL ?
>
>
>
> Sorry, I'm not making myself clear here. My JSPs do exactly
> as you suggest
Sorry, I'm not making myself clear here. My JSPs do exactly as you suggest
so that I have one JSP serving up French and English pages, depending on
the language that the user selected on my site.
Here is the problem explained very simply. I have a sitemap as follows:
/en
--> /Products
-->
One way you can do this is using property files.
Prop_ file name _ language code.properties
So for say abc.jsp , you have abc_en.properties and abc_fr.properties.
At comple time the JSP calls a class you write at server which gives say <%
String languageCode = ObjectName.getLaguageCode(param 1