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 mapping?
What are the steps that are required to handle the multi-threading?
Explain Action Servlet?
What is the directory structure of web application?
Can you create a deadlock condition on a servlet?
What is the workflow of a servlet?
Write a hello world program using servlets.
What are different ways for servlet authentication?
What do you mean by scope object and what are its types?
What do you mean by a filter and how does it work?
How do we call one servlet from another servlet?
How to get the current httpsession object?
Differentiate between get and post?
What is Servlet API used for connecting database?
Why are http servlets used in programming?