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 difference between cookies and httpsession?
What is new in ServletRequest interface ? (Servlet 2.4)
What is the difference between encodeRedirectUrl and encodeURL?
Can you explain in detail 'javax.servlet' package?
What is http servlet in java?
What is java servlet?
Is servlet a server side scripting language?
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What is getservletcontext?
Can we get PrintWriter and ServletOutputStream both in a servlet?
Write a simple servlet program to print the contents of html.
How can you push data from an Applet to a Servlet?
What is http servlet?
Write a program to show the functionality of servlets.
Explain the jar and war files in servlet?