look about the Valves...
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/catalina/docs/api/org/apache
/catalina/Valve.html
one limitation in using Valves
is that one cannot change the content of a request
is it has already been used by a previous valve...
this mean that probably you will have to stack
your URL rewriting valve before (over) the
usual valves which map URL to servlets...
I've never uses valves myself but it looks like
NTKernel Device Drivers and should be very flexible.
-Message d'origine-
De: Jiger Java [mailto:[EMAIL PROTECTED]]
Date: lundi 11 février 2002 12:17
À: [EMAIL PROTECTED]
Objet: Url Rewriting in Tomcat4.0
Hi,
Is is possible to do url rewriting in Tomcat. Something
such that when
a request like
http://www.server.com/reseller comes in then the server will
execute/get/map/etc etc the final url will become as
http://server.com/servlet/LoginServlet?role=reseller
which is then the named servlet be executed. The
servlet-mapping allows
only Servlet Class file name alias but not alias with
params. Can we do so
in Tomcat 4.0.
Thanks Awaiting your replies,
Jiger
_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]