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
Explain jsessionid and when is it created?
What do you mean by interservlet communication?
What is servlet looping or chaining?
Explain the features are in servlet 3?
Define the life cycle of a servlets.
What is servlet invoker?
What is meant by cookies?
Which java application server is the best?
How to notify an object in session when session is invalidated or timed-out?
What is java servlet session?
What is servlet and its use?
Why is http protocol called as a stateless protocol?
What is the difference in between the httpservlet and generic servlet?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
Who is responsible to create the object of servlet?