What about using one centralized servlet that parses
req.getPathInfo(), sets the language as request attribute
and forwards to the real servlet(s) ?

> -----Original Message-----
> From: Marten Lehmann [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 09, 2003 11:26 PM
> To: [EMAIL PROTECTED]
> Subject: servlet-mapping like mod_rewrite?
> 
> 
> through /de/* (german) and /en/* (english). Of course, I 
> don't want to 
> use two servlet-repositories for that. My idea is, that no matter if 
> e.g. /en/helloworld or /de/helloworld is requested, a unique 
> helloworld-servlet creates the response and chooses the language by 
> parsing req.getPathInfo() for /de/ resp. /en/. As it isn't only one 
> centralized servlet, I can't use the /* url-pattern. And I 
> don't want to 
> use a servlet-definition and according /en/??? and  /de/??? 
> url-pattern 
> for every single servlet. How else can I do this?
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to