SendRedirect
- This is the method of object HttpServlerResponse.
- Request is redirected to client (Browser), and it will process the new URL.
- End User can see on which page, url is redirected.
- In Nutshell, Processing done at client side.
RequestDispatcher
- This object can be accessed from HttpServletRequest.
- Servlet will internally forward the request to another servlet or jsp page.
- End user don’t know that which page is processed internally.
- In Nutshell, Processing done at server side.
Leave a Reply