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 MIME Type?

665


What do you mean by interservlet communication?

586


What are the steps that are required to handle the multi-threading?

599


Is tomcat a servlet container?

577


How is a servlet implemented in code?

568






What is generic servlet class?

600


How do you communicate in between Applets and Servlets?

597


How many objects of a servlet is created?

792


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

669


Can you use javascript in servlets?

602


What is the difference between using getSession(true) and getSession(false) methods?

571


Whether we can get deadlock situation in servlets?

578


How can you run a servlet program?

601


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

571


How can we include static files in the jsp page?

614