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
What’s the use of the servlet wrapper classes??
Is servlet a server side scripting language?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
What is a cookie What is the difference between session and cookie
What are the life cycle methods of the servlet?
Difference between doget and dopost?
What is the directory structure of a war file?
What do you mean by servlet context?
What's the advantages using servlets than using cgi?
What is servlet lazy loading?
How can we invoke another servlet in a different application?
What is the web server used for running the Servlets?
What is load-on-startup in servlet?
What are the steps that are involved in using the httpservlet class?
How many objects of a servlet is created?