tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coetmeur, Alain" <alain.coetm...@caissedesdepots.fr>
Subject RE: Url Rewriting in Tomcat4.0
Date Mon, 11 Feb 2002 13:17:13 GMT
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:jigerjava@hotmail.com]
> Date: lundi 11 février 2002 12:17
> À: tomcat-user@jakarta.apache.org
> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message