forward() | sendRedirect() |
Use forward() to transfer control to other resources within the same webapp, or to other webapps, for further processing. |
Use sendRedirect() to transfer control to other resources, perhaps on a different server, for futher processing. |
When forward() is called we pass the request and response object so our old request object is present in the new resource which is going to process our request. |
sendRedirect() is essentially a new URL. |