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 for chaining servlet?
How the JSP file will be executed on the Server side?
How can we upload the file to the server using servlet?
Can filter be used as request or response?
What are the different ways we can maintain state between requests?
Why is Servlet so popular?
What is the use of servlet wrapper classes?
How can a servlet be used to generate plain text instead of html?
How printwriter is different from servletoutputstream?
Define context initialization parameters.
What are the servlet events?
What is a web container and what is its responsibility?
What methodology can be followed to store more number of objects in a remote server?
What is context in servlet?
What do you mean by servlet?