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
How do you define a servlet?
How can we include static files in the jsp page?
What's the difference between authentication and authorization?
What are the differences between the servletconfig interface and the servletcontext interface?
What is url encoding and url decoding
What are important features of Servlet 3?
How can we refresh automatically when new data has entered the database?
What's the difference between servlets and applets?
What are the different session tracking techniques?
Can you call a jsp from the servlet?
What is the servlet?
Write the code to get the server information in servlet.
What’s the difference between forward() and sendredirect() methods?
What are the steps that are involved in using the httpservlet class?
Name the different ways of session tracking.