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

Explain jsessionid and when is it created?

679


What do you mean by interservlet communication?

677


What is servlet looping or chaining?

756


Explain the features are in servlet 3?

685


Define the life cycle of a servlets.

658






What is servlet invoker?

677


What is meant by cookies?

693


Which java application server is the best?

649


How to notify an object in session when session is invalidated or timed-out?

713


What is java servlet session?

608


What is servlet and its use?

716


Why is http protocol called as a stateless protocol?

613


What is the difference in between the httpservlet and generic servlet?

695


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

692


Who is responsible to create the object of servlet?

810