What is the difference between RequestDispatcher and
sendRedirect?-

Answer Posted / sitaram

RequestDispatcher: Serverside redirect with same request
and response objects.
SendRedirect: Client-side redirect with new request and
response objects.

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are important features of Servlet 3?

598


What are the benefits of using servlet over cgi?

580


When a servlet accepts a call from a client, it receives two objects. What are they?

767


What is servlet attributes and their scope?

595


Why is Servlet so popular?

615






What do you mean by singlethreadmodel interface?

582


Difference between GET and POST?

712


request parameter how to find whether a parameter exists in the request object?

575


Difference between get and post in java servlets?

549


How servlet is created?

547


Which application server is best for java?

560


How will you pass values from HTML page to the servlet?

556


What are the supporting protocol by HttpServlet ?

658


What are the differences between the servletconfig interface and the servletcontext interface?

583


What is MIME Type?

665