You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shahed A Moolji <sh...@enoor.com> on 2001/05/23 22:08:01 UTC

KeepAlive and sendRedirect Vs jsp:forward

Hi,

I am using TC 3.2.1 w/Apache and ajp13 - JDK 1.3.1 Solaris 8 Sparc

If I have keepalive turned on in apache, my response.sendRedirect() dont
seem to work well.

However <jsp:forward> seems to work.

What is the difference from the point of view of the browser between the 2 ?

Thanks
Shahed


Re: KeepAlive and sendRedirect Vs jsp:forward

Posted by Daniel Lynes <dl...@home.com>.
On Wednesday 23 May 2001 13:08, Shahed wrote:

> I am using TC 3.2.1 w/Apache and ajp13 - JDK 1.3.1 Solaris 8 Sparc
>
> If I have keepalive turned on in apache, my response.sendRedirect() dont
> seem to work well.
>
> However <jsp:forward> seems to work.
>
> What is the difference from the point of view of the browser between the 2

Lots.  <jsp:forward> is equivalent to pageContext.forward( String url ), not 
response.sendRedirect( String url ).

RE: KeepAlive and sendRedirect Vs jsp:forward

Posted by Martin van den Bemt <mv...@mvdb.com>.
If you do a response.senRedirect() and the redirect is empty, the servlet
calls itself without parameters... (at least in tomcat, not in jserv..).
Maby that's causing the problem..

Mvgr,
Martin van den Bemt

> -----Original Message-----
> From: Brandon Cruz [mailto:bcruz@norvax.com]
> Sent: Wednesday, May 23, 2001 11:05 PM
> To: tomcat-user@jakarta.apache.org
> Subject: RE: KeepAlive and sendRedirect Vs jsp:forward
>
>
> I have been having tons of problems with response.sendRedirect() and can't
> figure out what in the world is causing it.  I'll try forward and see how
> that works, thanks :-)
>
> Brandon
>
> -----Original Message-----
> From: Shahed A Moolji [mailto:shahed@enoor.com]
> Sent: Wednesday, May 23, 2001 3:08 PM
> To: tomcat-user@jakarta.apache.org
> Cc: JSP-INTEREST@JAVA.SUN.COM
> Subject: KeepAlive and sendRedirect Vs jsp:forward
>
>
> Hi,
>
> I am using TC 3.2.1 w/Apache and ajp13 - JDK 1.3.1 Solaris 8 Sparc
>
> If I have keepalive turned on in apache, my response.sendRedirect() dont
> seem to work well.
>
> However <jsp:forward> seems to work.
>
> What is the difference from the point of view of the browser
> between the 2 ?
>
> Thanks
> Shahed
>
>
>


RE: KeepAlive and sendRedirect Vs jsp:forward

Posted by Brandon Cruz <bc...@norvax.com>.
I have been having tons of problems with response.sendRedirect() and can't
figure out what in the world is causing it.  I'll try forward and see how
that works, thanks :-)

Brandon

-----Original Message-----
From: Shahed A Moolji [mailto:shahed@enoor.com]
Sent: Wednesday, May 23, 2001 3:08 PM
To: tomcat-user@jakarta.apache.org
Cc: JSP-INTEREST@JAVA.SUN.COM
Subject: KeepAlive and sendRedirect Vs jsp:forward


Hi,

I am using TC 3.2.1 w/Apache and ajp13 - JDK 1.3.1 Solaris 8 Sparc

If I have keepalive turned on in apache, my response.sendRedirect() dont
seem to work well.

However <jsp:forward> seems to work.

What is the difference from the point of view of the browser between the 2 ?

Thanks
Shahed