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" />
    </Host>

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?

Josh
----- Original Message -----
From: "Oki DZ" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
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
of
> the messageboards about any kind of forward or redirect function in
Tomcat.
> 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>"));
%>

Oki



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to