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
What is the life-cycle of servlets?
How to commuincate between an applet and a servlet?
Explain the features are in servlet 3?
Is it good idea to create servlet constructor?
How can the session in servlet be destroyed?
How can you create a session in servlet?
What are common tasks performed by Servlet Container?
Name the different ways of session tracking.
List out the difference between ServletConfig and ServletContext?
Which is the methods of generated servlet?
Which event is fired at the time of setting, getting or removing attribute from application scope?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
Is it possible to have a constructor inside the servlet?
What is the difference between a generic servlet and http servlet?
Explain jsessionid and when is it created?