Christopher Cobb wrote:

> The main difference between sendRedirect() and forward() that I can tell is that 
>forward() will preserve your lifespan=page -level information whereas sendRedirect() 
>will loose it (since a new page is being shown).  Forward preserves this since you 
>use the same request object.
>
> If you are using sessions, I don't think it matters that much.
>

This difference is accurate, but it's not the only important one.  Another difference 
is that a forward happens on the server side, without a second round trip to the 
browser.  Thus, it should provide better response times (even if you're using 
sessions), in nearly every
circumstance.

Craig McClanahan

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to