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
What is the life cycle of a servlet?
What are the uses of servlet and what is servlet chaining?
What are all the protocols supported by httpservlet?
What's the difference between authentication and authorization?
Explain is servlet mapping?
What are the two important api's in for servlets?
What do you mean by cgi in servlet?
What are session variable in servlets?
What is a web application and what is it’s directory structure?
What exactly is a servlet?
Why do we have servlet wrapper classes?
What is a web container and what is its responsibility?
What’s the difference between genericservlet and httpservlet?
Can servlet have a constructor ?
What are the life-cycle methods for a servlet?