Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 5621 invoked from network); 20 Mar 2002 19:42:39 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 20 Mar 2002 19:42:39 -0000 Received: (qmail 10607 invoked by uid 97); 20 Mar 2002 19:42:01 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 10591 invoked by uid 97); 20 Mar 2002 19:42:01 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 10580 invoked from network); 20 Mar 2002 19:42:00 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 content-class: urn:content-classes:message Subject: RE: TC 4 - URLRewrite :: repost MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 20 Mar 2002 19:35:15 -0000 Message-ID: <88500E0F870AA542B6340D8BC05A9E1B972C@rup.hugsmidjan.is> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: TC 4 - URLRewrite :: repost Thread-Index: AcHQQlz0Y3faj1FgSCKjS5pWRdr6xgAAN/BA From: =?iso-8859-1?Q?Reynir_H=FCbner?= To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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)=20 =20 hmm I also noticed a function within Defaultservlet ds.rewrite(path)... is it possible somehow to work with this ?=20 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 >=20 >=20 > Hi Reynir, >=20 > I had a look at doing this, from having a look at the code,=20 > the only thing > you can do > is a client side redirect (i.e. sending back a HTTP 302 to=20 > the redirected > page). From what > I gathered you've got to start going right up the food chain=20 > within Tomcat > to do it internally, > i.e. Filter->Value->Container->Connector >=20 > Regards, >=20 > James Williamson > www.nameonthe.net > ----- Original Message ----- > From: Reynir Hubner > To: Tomcat Users List > Sent: Wednesday, March 20, 2002 6:18 PM > Subject: RE: TC 4 - URLRewrite :: repost >=20 >=20 > > 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=20 > time.. ). > > > > > > > Hi, > > > > > > I'm looking for the best way of writing a URLRewrite for=20 > tomcat that > > > works similar to mod_rewrite in apache. > > > Does anyone have an opinion on this matter, should I=20 > write a filter or > > > extend some of the Tomcat base servlets such as DefaultServlet or > > > InvokerServlet, or even write some kind of an addition=20 > onto coyote. > > > > > > I think filter is the correct way to do it.. what's your opinion ? > > > > > > thanx... > > > -reynir@hugsmidjan.is > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > To unsubscribe: =20 > > > > For additional commands:=20 > > > > Troubles with the list:=20 > > > > > > > > > > > -- > > To unsubscribe: =20 > > > For additional commands:=20 > > > Troubles with the list:=20 > > > >=20 >=20 > -- > To unsubscribe: > For additional commands: > Troubles with the list: >=20 >=20 -- To unsubscribe: For additional commands: Troubles with the list: