Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Triptpal Singh Lamba
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

Re: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Stephen Riek
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 --

RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Cox, Charlie
use request.gePathInfo() to get the path. Then parse the string and use RequestDispatcher.forward(/products/Toys/index.jsp?myparam=+langString). The forward() will not be subject to further filter processing. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]]

RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Ron Smits
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

help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-24 Thread Stephen Riek
I'd like for a request to webapp/en/Folder/File to be sent to webapp/Folder/File but with a parameter 'lang' set to 'en'. Likewise, a request to webapp/fr/Folder/File to be sent to webapp/Folder/File but with a parameter 'lang' set to 'fr'. Is this possible with Filters? If not, is there