What is the purpose of RequestDispatcher?

We use RequestDispatcher interface to forward requests to other resources like HTML, JSP etc.

It can also be used to include the content of another page in a JSP.

It has two methods: forward and include.

We have to first get the RequestDispatcher object from the container and then we can call include or forward method on this object.

Read the full book at www.amazon.com
Posted in JSP, JSP Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*