What is the use of RequestDispatcher in servlet?

Answer Posted / pramod p deore

RequestDispatcher is used to transfer the control to other
JSP or servlet.
RequestDispatcher rd= request.getRequestDispatcher
("result.jsp);
rd.forward (request, response);

Is This Answer Correct ?    9 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to make sure a servlet is loaded at the application startup?

647


What is the difference between portlet and servlet?

597


What is the difference between the include() and forward() methods?

657


What is a web application and what is it’s directory structure?

673


What are the types of Session Tracking ?

728






Can servlet have a constructor ?

677


What is servlet and list its types?

623


Can we refresh servlet in client and server side automatically?

662


Explain is servlet mapping?

659


How do you load an image in a Servlet?

758


What is a servlet context object?

712


What if you need to span your transaction across multiple servlet invocations?

660


Write the code to get the server information in servlet.

662


What is SingleThreadModel interface?

776


What are the annotations used in servlet 3?

665