The Request Dispatcher allows servlets to forward control of the request.
This way the servlet can do some processing and the hand off the request.
For instance, you could have a servlet do some work and then hand off the
request to a JSP page for the presentation component.
The servlet life cycle for a servlet is essentially a server loading and
initializing the servlet, the servlet handling requests, the server removing
the servlet. When you use the request dispatcher to forward a request, you
need to have the destination servlet handle the request.
Justy
----- Original Message -----
> Hi:
>
> I'm quite puzzled by the method RequestDispatcher.forward(request,
response)
> and how it will fit into the servlet lifecycle?? Cos I can't find any info
> in the Servlet Specs 2.2...
>
> Thanks for the info.
>
> Terence
>
>
> This communication contains confidential or privileged information. If you
> are not the intended recipient, please notify us IMMEDIATELY that you have
> received it and destroy it. We are not liable for any unauthorised
sending
> of or interference with this communication.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> 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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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