skip to main  |
      skip to sidebar
          
        
          
        
sendRedirect() vs. forward
sendRedirect
- Sends a header back to the browser, which contains the name of the resource to be redirected to. The browser will make a fresh request from this header information. 
 - Need to provide absolute URL path.
 - Has an overhead of extra remote trip.
 - but has the advantage of being able to refer to any resource on the same or different domain
 - also allows book marking of the page.
 
forward
- Forward action takes place within the server without the knowledge of the browser.
 - No extra network trip.