What is the use of RequestDispatcher in servlet?
Answer Posted / tirupathi rao
RequestDispatcher is used to connect to another webresource
with in the same context.
RequestDispatcher
rd=ServletContext.getRequestDispatcher("url of resource");
rd.forward(req,res);----used to forward to another resource.
rd.include(req,res);----used to include other resource.
| Is This Answer Correct ? | 132 Yes | 15 No |
Post New Answer View All Answers
How do servlets work?
What do you mean by servlet?
What is servlet looping or chaining?
List out difference between a JavaBean from a Servlet?
What is a generic servlet?
Define context initialization parameters.
How to get the actual path of servlet in server?
What is the directory structure of web application?
Whether thread can be used in servlets?
What do you mean by annotations in servlet?
How can the session in servlet be destroyed?
What is difference between get and post method?
Difference between httpservlet and generic servlets?
What do you mean by cgi in servlet?
Servlet is pure java object or not?