What is the difference between RequestDispatcher and
sendRedirect?-

Answer Posted / kalyan

RequestDispatcher() method is executed in server-
side,requestdispatcher method is used to transfer the one
page to another serverside page .In this method we can use
the include() and forward() methods .

SendRedirect () method is directly into the client side ....

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What if you need to span your transaction across multiple servlet invocations?

587


Why HttpServlet class is declared abstract?

652


Why filter is used in servlet?

528


How to get the server information in a servlet?

689


What is the use of servlet wrapper classes?

673






How do you run a servlet?

548


Which HTTP method is non-idempotent?

618


What is a web container and what is its responsibility?

531


What is servlet in tomcat?

564


What are some advantages of storing session state in cookies?

598


What is the use of welcome-file-list?

576


What is the difference between 2 types of servlets?

650


How we can get ip address of client in servlet?

544


How does Cookies work in Servlets?

653


What is difference between server and servlet?

581