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
Elucidate servlet attributes and its scope?
Which is the methods of generated servlet?
What is cgi?
Can you refresh servlet in client and server-side automatically?
Are Servlets Thread Safe? How to achieve thread safety in servlets?
What are the different methods involved in the process of session management in servlets?
What are the life cycle methods of the servlet?
How will you pass values from HTML page to the servlet?
What are the different mode that servlets can be used?
What are the steps that are required to handle the multi-threading?
What is the difference between Server and Container?
Explain is servlet mapping?
Is servlet a server side scripting language?
Is dispatcher servlet a singleton?
Describe in brief RequestDespatcher?