tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshua wentworth <jo...@voquette.com>
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" />
    </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" <okidz@pindad.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message