What is the use of RequestDispatcher in servlet?
Answer Posted / malyadri b
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why servlet is used as controller ? Not JSP? I want complete explation?
Explain how to improve Servlet Performance?
What is the difference in between the httpservlet and generic servlet?
How do you get the ip address of the client in servlet?
What are the uses of servlets?
What is getservletcontext?
What is the use of attribute in servlets?
What is servlet collaboration?
What is url encoding and url decoding
How are filters?
How to commuincate between an applet and a servlet?
Why doesn’t a servlet include main()? How does it work?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Which interface must be implemented by all servlets?
How can we invoke another servlet in a different application?