A simple difference is.. We will forward a request to another resource(another servlet/JSP)which is in the same context ie., in the same appication/war file. whereas we will redirect the request to another resource if that resouce is in another web application ie.,if the resource is in some other war file
The sendRedirect() method sends a message from servlet to the browser to get the resource from elsewhere whereas the forward() method forwards the request from one servlet to another servlet from within the server and wont send a message to the browser to do the same.
Joined: Mar 03, 2006
Yes, what bear says is right.sendRedirect can also be used to reuest another resource which is in the same application. I regret that I couldnt give you clear information