What is the difference between forward tag and sendRedirect() ?

Showing Answers 1 - 1 of 1 Answers

Anand

  • Apr 26th, 2005
 

A sendRedirect() instructs the browser to reload a different page. So the browser ends up making two calls to get a page. 
A forward() acts on server-side and makes the browser wait while the server internally hands of processing of the request to some other Servlet. That new servlet will respond directly.

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