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


Please Help Members By Posting Answers For Below Questions

What is the process for chaining servlet?

613


What is the dispatcher servlet?

518


What is Servlet API used for connecting database?

622


What do you mean by deployment descriptor?

557


What are the advantages of Servlet over CGI?

670






What are the different methods involved in the process of session management in servlets?

673


What is URL Encoding?

627


What are sessions in servlets?

582


What is meant by a servlet?

611


Explain the concept of ssi ?

596


What is called servlet mapping?

560


What is getservletcontext?

554


Why do we need a constructor in a servlet if we use the init method?

522


What do you mean by web applications?

631


What are the types of protocols supported by httpservlet ?

709