Vaidyanathan_g wrote:

> Hi,
>
> Thanks a lot. Now as per my understanding
>
> sendRedirect supports only doGet.
> forward(Request Dispatcher) supports only doPost.
>

RequestDispatcher.forward() accesses the same doGet or doPost method as was used
in the original request.  I believe that is also true of sendRedirect (in other
words, you can redirect a POST) but I haven't ever tried it -- forwarding is much
faster because it avoids the second round trip back to the client.

>
> Is it correct?
>
> Thanks.
>
> Regards,
>
> Vaidya
>

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to