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. |
BY Best Interview Question ON 19 Jan 2019