You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Haller, Joe" <Jo...@purchasepro.com> on 2001/10/12 18:18:57 UTC

URL forward

Does anyone know how to do a URL forward configuration
for Tomcat 4.0?

Re: URL forward

Posted by simon colston <si...@lexues.co.jp>.
On Fri, 12 Oct 2001 09:28:36 -0700 (PDT)
"Craig R. McClanahan" <cr...@apache.org> wrote:

CM> On Fri, 12 Oct 2001, Haller, Joe wrote:
CM> 
CM> > Date: Fri, 12 Oct 2001 09:18:57 -0700
CM> > From: "Haller, Joe" <Jo...@purchasepro.com>
CM> > Reply-To: tomcat-user@jakarta.apache.org
CM> > To: "'tomcat-user@jakarta.apache.org'" <to...@jakarta.apache.org>
CM> > Subject: URL forward
CM> >
CM> > Does anyone know how to do a URL forward configuration
CM> > for Tomcat 4.0?
CM> >
CM> 
CM> Do you mean like aliasing or mod_rewrite in Apache?  There is nothing
CM> built in to do this at the moment, although it would be really easy to
CM> implement as a Valve in the internal APIs.  Any volunteers want to get
CM> their feet wet playing on the inside of Tomcat?
CM> 

Not knowing the internals of Tomcat all that well maybe there could be a performance issue, but wouldn't it be nice to see this implemented as a Filter?  Then it would be completely portable.

CM> Craig
CM> 
CM> 
CM> 


--
simon colston
simon@lexues.co.jp

Pathing (relative or not relative, I don't want to care)

Posted by Jeff Corliss <je...@yahoo.com>.
Ok, I'm just about ready to tear my hair out.
It's been my (mis)understanding so far that when you
start off a path with "/", then when that path gets
processed it will be relative to the webapp context. 
For example: if my web app is "mywebapp", and I'm
currently surfing
"http://some.com/mywebapp/someplace/deep/thishere.jsp",and
that .jsp causes a form action or forward to a path
given as "/some/other/place/gohere.jsp", then the user
should wind up at
"http://some.com/mywebapp/some/other/place/gohere.jsp".

This doesn't work out to be the case though.  Is there
anyway to setup my URLs so that I don't have to care
about "where the user is right now" to ensure that the
user gets to where they should go next?

Using Tomcat 3.2.3, btw.


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

Re: URL forward

Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 12 Oct 2001, Haller, Joe wrote:

> Date: Fri, 12 Oct 2001 09:18:57 -0700
> From: "Haller, Joe" <Jo...@purchasepro.com>
> Reply-To: tomcat-user@jakarta.apache.org
> To: "'tomcat-user@jakarta.apache.org'" <to...@jakarta.apache.org>
> Subject: URL forward
>
> Does anyone know how to do a URL forward configuration
> for Tomcat 4.0?
>

Do you mean like aliasing or mod_rewrite in Apache?  There is nothing
built in to do this at the moment, although it would be really easy to
implement as a Valve in the internal APIs.  Any volunteers want to get
their feet wet playing on the inside of Tomcat?

Craig