tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ofer Baranes <Of...@fundtech.co.il>
Subject RE: problems with sendRedirect() on relative path
Date Wed, 06 Jun 2001 11:58:49 GMT

Alex , actually i just learnd that using the RequestDispatcher is a better
solution since the response is for this request while redirct is creating
new  request&response.
By the way the RequestDispatch is showing static pages.
Thanks

-----Original Message-----
From: afm229@tid.es [mailto:afm229@tid.es]
Sent: Wednesday, June 06, 2001 12:43 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: problems with sendRedirect() on relative path


Hi Ofer!

You can specify a different context, that will not contain the /servlet
prefix. The prefix is set by context.

I don't think the suggestion that was sent before (RequestDispatcher)
will work, since it's a static page.

Un saludo,

Alex.

Ofer Baranes wrote:
> 
>  Hi
>  I am tring to use the HttpServletResponse sendRedirect() method to show a
> static page but i can't use relative path  only static path (which include
> the context).The problem occure because of the default '/servlet' prefix
> which is used on tomcat conf\servel.xml.This  default prefix force that
each
> accses to servlet will contain the /servlet on the URI.
> Does anyone know how to solve that ?

Mime
View raw message