What is the use of RequestDispatcher in servlet?
Answer Posted / suresh g
RequestDispatcher:
RequestDispatcher class is mainly used to 'pass on'
the current request to another program (servlet) and
therefore allows 'chaining' of the programs. A
RequestDispatcher primarily contains two methods
include() and forward(). include() method includes
the response of another program while forward()
method forwards the request of the current program
to another one.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is servlet configuration?
What are the jobs performed by servlets?
What's the difference between authentication and authorization?
What is the difference between a generic servlet and http servlet?
How do you get the ip address of the client in servlet?
How we can get ip address of client in servlet?
What is servlet initializer?
what is servlet chaining?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What is the difference between 2 types of servlets?
How httpservlet is different from the genericservlet?
What is the requirement of servlet config and servlet context implemented and how are they implemented?
What are the functions of an intercepting filter?
What is servlet in simple terms?
What is the process for chaining servlet?