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
How to make sure a servlet is loaded at the application startup?
What is the difference between portlet and servlet?
What is the difference between the include() and forward() methods?
What is a web application and what is it’s directory structure?
What are the types of Session Tracking ?
Can servlet have a constructor ?
What is servlet and list its types?
Can we refresh servlet in client and server side automatically?
Explain is servlet mapping?
How do you load an image in a Servlet?
What is a servlet context object?
What if you need to span your transaction across multiple servlet invocations?
Write the code to get the server information in servlet.
What is SingleThreadModel interface?
What are the annotations used in servlet 3?