WHAT IS THE DIFFERENCE BETWEEN FORWARD AND SENDREDIRECT?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java  Jsp 
 550  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is the difference between forward and sendredirect?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!