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 is the difference between portlet and servlet?

510


Why is a constructor needed in a servlet even if we use the init method?

602


What is servlet container?

663


What are the differences between forward() method and sendredirect() methods?

545


What are the type of protocols used in httpservlet?

612






What is servlet and how it works?

506


Whats the advantages using servlets over using CGI?

584


What is meant by servlet? What are the parameters of the service method?

570


Explain the steps involved in placing a servlet within a package?

567


What is the use of attribute in servlets?

540


Write all the phases defined in servlet life cycle?

587


What is meant by Servlet? What are the parameters of service method?

594


What are the different methods involved in the process of session management in servlets?

661


What is servlet and its life cycle?

566


What are the uses of servlet and what is servlet chaining?

559