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 the process to implement doget and dopost methods?
What are the various ways of session supervision in servlets?
How a servlet is unloaded?
How do we share data using 'getservletcontext ()?
What do you mean by cgi and what are its drawbacks?
What’s the use of the servlet wrapper classes??
What is getservletcontext?
Explain web application directory arrangement?
What is servlet instance?
What is cookies in servlet with example?
How to commuincate between an applet and a servlet?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What is the disadvantage of cookies?
Is servlet a server side scripting language?
Write all the phases defined in servlet life cycle?