Home > DeveloperSection > Interviews > What is the difference between forward and sendredirect?

Posted on    August-12-2015 12:52 AM

 Java Java  Jsp 
 1 Answer(s)
  509  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    August-12-2015 12:52 AM

Both method calls redirect you to new resource/page/servlet. The difference between the two is that sendRedirect always sends a header back to the client/browser, containing the data in which you wanted to be redirected.

Don't want to miss updates? Please click the below button!

Follow MindStick