What is the use of RequestDispatcher in servlet?
Answer Posted / yuga.reddi08
RequestDispatcher is an interface,In a web application
having multiple webcomponents to handle a single request at
time we go for RequestDispatcher.
RequestDispatcher rd=servletRequest.getRequestDispatcher
("url of the webcomponent");
rd.inculude(request,response);
rd.forward(request,response);
| Is This Answer Correct ? | 34 Yes | 27 No |
Post New Answer View All Answers
Describe in brief RequestDespatcher?
What are the annotations used in servlet 3?
How a servlet is unloaded?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
What is cookie? Why is cookie used?
What is the use of httpservletresponsewrapper?
How do you design microservices?
What is meant by Servlet? What are the parameters of service method?
How can we achieve transport layer security for our web application?
Explain web container.
What do you mean by the servlet chaining?
How to upload a file to the server using servlet?
What is generic servlet class?
Differentiate between the get and post method
What are the life cycle methods of a servlet?