tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reynir Hübner <rey...@hugsmidjan.is>
Subject RE: TC 4 - URLRewrite :: repost
Date Wed, 20 Mar 2002 19:35:15 GMT
thanx james...

Client side redirect is not good enough... for what I was thinking.

I am not really understanding your comment on how to do it internally.
If I understand it correctly I might want to write a Connector that does
the URLrewriting for me, (something like mod_webapp or
coyote+urlrewrite).

or is it easyer (and more portable onto other servers) to write a filter
that uses requestDispatcher.redirect("new/path")? (sorry I don't know
the filters api very well) 
 
hmm I also noticed a function within Defaultservlet ds.rewrite(path)...
is it possible somehow to work with this ? 


thanx again..
-r



> -----Original Message-----
> From: James Williamson [mailto:james@nameonthe.net]
> Sent: 20. mars 2002 19:08
> To: Tomcat Users List
> Subject: Re: TC 4 - URLRewrite :: repost
> 
> 
> Hi Reynir,
> 
> I had a look at doing this, from having a look at the code, 
> the only thing
> you can do
> is a client side redirect (i.e. sending back a HTTP 302 to 
> the redirected
> page). From what
> I gathered you've got to start going right up the food chain 
> within Tomcat
> to do it internally,
> i.e. Filter->Value->Container->Connector
> 
> Regards,
> 
> James Williamson
> www.nameonthe.net
> ----- Original Message -----
> From: Reynir Hubner <reynir@hugsmidjan.is>
> To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> Sent: Wednesday, March 20, 2002 6:18 PM
> Subject: RE: TC 4 - URLRewrite :: repost
> 
> 
> > hey guys, I got no replies.. so this is a repost of the same message
> > from early this morning.. (hope someone will notice it this 
> time.. ).
> >
> >
> > > Hi,
> > >
> > > I'm looking for the best way of writing a URLRewrite for 
> tomcat that
> > > works similar to mod_rewrite in apache.
> > > Does anyone have an opinion on this matter, should I 
> write a filter or
> > > extend some of the Tomcat base servlets such as DefaultServlet or
> > > InvokerServlet, or even write some kind of an addition 
> onto coyote.
> > >
> > > I think filter is the correct way to do it.. what's your opinion ?
> > >
> > > thanx...
> > > -reynir@hugsmidjan.is
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > 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>
> >
> 
> 
> --
> 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