What is difference between Redirect and request dispatch

Showing Answers 1 - 6 of 6 Answers

Using the redirect method ,we can forward the request to servlet that is either in the same servlet container or in other container .When we are using request dispatch method ,we can forward the request only to a servlet that is in the current container.

  Was this answer useful?  Yes

Praveen.kb

  • Sep 4th, 2009
 

Request Dispatcher - Dispatch the request to some other JSP or Servlet, user will not aware of this and finally response will go from where the request is dispatched.
Request Redirect - Redirect request where user will find URL change and the response will come from redirected servlet or JSP.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions