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

How the typical servlet code look like ?

635


What’s the difference between forward() and sendredirect() methods?

572


How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255

2914


How printwriter is different from servletoutputstream?

577


How can you run a servlet program?

599






What are some advantages of storing session state in cookies?

593


How to get the path of servlet in the server?

531


What are the important functions of filters?

594


What is the process to implement doget and dopost methods?

544


Should I override the service() method?

666


What is the difference in between the httpservlet and generic servlet?

601


What does the term localization refer to?

580


What is cookies in servlet with example?

516


Define the servlet mapping.

546


What is context in servlet?

537