In the forward scenario, will the server ever send a
300 code back to a client browser?
Joe Zhou
--- Hiren Dossani <[EMAIL PROTECTED]> wrote:
> Dear Brad Miley,
>
> When a Servlet or a JSP resource chooses to redirect
> the client using
> response.sendRedirect(url), the request object does
> not reach the second
> resource directly since the underlying
> implementation is an HTTP redirect.
> The server sends an HTTP 302 messages back to the
> client telling it that the
> resource has been moved to another url and that the
> client should access it
> there.
> In forward mechanism, the request object is
> forwarded to the second
> resource, thus maintaining any object binding to the
> request and its state,
> without a round trip to the client on the network.
>
> Hope I answered your question.
>
> Regards,
> Hiren
> ----- Original Message -----
> From: "Brad Miley" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, August 09, 2000 11:54 AM
> Subject: redirect and forward, the difference
>
>
> > What is the difference between
> > 1. <jsp:forward page="web/welcome.jsp" />
> > 2. response.sendRedirect("web/welcome.jsp");
> >
> >
>
________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found
> at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> >
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets