What is the difference between forward () and sendRedirect () functions in Servlet? Explain

  forward() sendRedirect()
1. Server-side redirect. Client-side redirect.
2. Redirect is at the server end, not visible to the client. Redirection is at the client end and visible to the client.
3. Original URL remains intact. Original URL changes.

Suggest An Answer

No suggestions avaliable!

Latest post from Servlet Interview questions

Ask Question