RE: Url Rewriting in Tomcat4.0

2002-02-11 Thread Coetmeur, Alain

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 
>  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:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Url Rewriting in Tomcat4.0

2002-02-11 Thread Paul Downs



--On 11 February 2002 16:47 +0530 Jiger Java <[EMAIL PROTECTED]> wrote:

Hi,

> 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  allows
> only Servlet Class file name & alias but not alias with params. Can we do
> so in Tomcat 4.0.

  If you are running tomcat 4 with the apache web server then you could 
perhaps do this through mod_rewrite.  I don't think it is possible through 
Tomcat4 directly unless you want to write a servlet that responds to 
http://www.server.com/reseller by redirecting to the url you want? ;)

Paul

--
To unsubscribe:   
For additional commands: 
Troubles with the list: