servlet-mapping like mod_rewrite? 2003-12-09 - By Marten Lehmann
Back Hello,
to offer language-depended websites I want to make a webapp available 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?
Regards Marten
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|