Recent Posts
- NCC Punjab LDC Results 2013 NCCPunjab.com Interview Selected Candidates List
- RGUHS PGSSET Super Speciality 2013 Exam www.logisys.net.in Online Application
- RKCL RS-CIT Results 2013 rkcl.in RSCIT Final Exam May Result 2013
- TNEB Electricity Bills Online Payment tnebnet.org/awp/login Tamilnadu EB Payment System
- Kerala LET 2013 Fee Structure for 2013-14 Engineering College Admission
Discussion Forum
RequestDispatcher in Servlet with Example
RequestDispatcher in Servlet with Example. You can find RequestDispatcher Concept and example Program in this page.
The RequestDispatcher object is used to send a client request to any resource on the server Such a resource may be dynamic (e.g. a Servlet or a JSP file) or static (e.g. a HTML document)
To send a request from resource x to resource y, we need to create RequestDispatcher object. This has been done in 3 ways:
- HttpServletRequest.getRequestDispatcher(“url”);
- Servlet.getServletContext().getRequestDispatcher(“url”);
- Servlet.getServletConfig().getServletContext().getRequestDispatcher (“url”);
RequestDispatcher object is used to
- forward the request from one resource to another in Server
- include the response of one resource into another
Forwarding or including will be done at server side so client don’t have
any information.
