| forward() method | sendRedirect() method |
|---|---|
| 1) forward() sends the same request to another resource. | 1) sendRedirect() method sends new request always because it uses the URL bar of the browser. |
| 2) forward() method works at server side. | 2) sendRedirect() method works at client side. |
| 3) forward() method works within the server only. | 3) sendRedirect() method works within and outside the server. |
What is difference between forward() method of RequestDispatcher and sendRedirect() method ?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment