What is the difference between RequestDispatcher.forward(request req,response res) And response.sencRedirect("url");?

This question is related to Oracle Interview

Showing Answers 1 - 3 of 3 Answers

npsarathy

  • Mar 7th, 2010
 

Forward sends the same request object that is available in that page
The client will not see any change in URL in the browser


When SendRedirect is used the request scope objects are no longer available and hence have to use a query string and pass them as request parameters or put them in session


Forward is faster than SendRedirect since the later option constructs a new request object

  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