Check out:
http://www.jspinsider.com/reference/jspredirection.html
for a complete page long description of the differences

in a nutshell
response.sendRedirect("web/welcome.jsp") is how to have your client's
browser request a new page.

and <jsp:forward page="web/welcome.jsp" />
is a server redirection: How to have the server sent to a new page.

Casey Kochmer

>From: Brad Miley <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: redirect and forward, the difference
>Date: Wed, 9 Aug 2000 15:54:45 GMT
>
>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

________________________________________________________________________
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
  • ... Brad Miley
    • ... Hiren Dossani
    • ... Rogério Saran
    • ... JSP Insider
    • ... Joe Zhou
    • ... Raja Nagendra Kumar
      • ... tonny
        • ... Thor Heinrichs-Wolpert
        • ... Xing guohong
    • ... Maurice Coyle - Sun ireland - Software Products and Platforms - Internationalization Engineer

Reply via email to