requestDispatcher.forward and response.sendRedirect

What is the difference between requestDispatcher.forward and response.sendRedirect
[89 byte] By [sumeshzzza] at [2007-11-27 6:35:31]
# 1

The RequestDispatcher#forward() forwards the current request to another page, where you can reuse the request parameters.

The ServletResponse#sendRedirect() redirects the response to another page, which is in fact just a new request on that page.

I would just add that you may try to work on your research capabilities. This is really asked countless times.

Here is one subtle example: http://www.google.com/search?q=What+is+the+difference+between+requestDispatcher.forward+and+response.sendRedirect

BalusCa at 2007-7-12 18:02:36 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...