tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshua wentworth <>
Subject Re: Tomcat redirect
Date Tue, 07 May 2002 15:08:41 GMT
I was hoping of something within the Tomcat configuration itself since we
don't use an index.jsp file. To be more specific about my problem, Whenever
a servlet calls another servlet in Tomcat it isn't intercepting the
/servlet/ directive and replacing it with /spike/servlet/ which is what it
should be doing. Perhaps I'm overlooking something obvious in the
configuration that will do this, but I've tried putting a
<Host name="DEFAULT" >
    <Context path="/servlet"
             docBase="/spike/servlet" />

Entry in the server.xml file, but that didn't seem to do it either...
Someone smack me with a clue stick and tell me what I'm doing wrong?

----- Original Message -----
From: "Oki DZ" <>
To: "Tomcat Users List" <>
Sent: Monday, May 06, 2002 8:17 PM
Subject: Re: Tomcat redirect

On 05/07 04:19 joshua wentworth wrote:
> I am trying to have Tomcat redirect certain requests to other applications
> or other sites. But I can't find anything in the documentation or in any
> the messageboards about any kind of forward or redirect function in
> Is there such a function, and if so where can I find documentation on it?

You can use the following in my index.jsp, so that the main page will be
redirected to some other location: <%
response.sendRedirect(response.encodeRedirectURL("<new URL>"));


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message