File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes RequestDispatcher Interface. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "RequestDispatcher Interface." Watch "RequestDispatcher Interface." New topic
Author

RequestDispatcher Interface.

geet kaur
Ranch Hand

Joined: Sep 03, 2008
Posts: 78
Depending on the class whose method creates a RequestDispatcher,the path to the resource to be forwarded to will change.

can anyone please ellaborate??
Deepakkumar Devarajan
Ranch Hand

Joined: Apr 19, 2011
Posts: 54

geet kaur wrote:Depending on the class whose method creates a RequestDispatcher,the path to the resource to be forwarded to will change.

I did not understand what are trying to ask... getRequestDispatcher(), a method of the class ServletRequest returns the RequestDispatcher object that acts as a wrapper for the resource located at the specified path. Using this reference, you can forward the response and request to the specified path. I am not sure whether i answered your question. Please question a little clearly if not.

Regards,
Deepakkumar Devarajan

Regards,
Deepakkumar Devarajan
 
Consider Paul's rocket mass heater.
 
subject: RequestDispatcher Interface.
 
Similar Threads
sendRedirect
difference between RequestDispatcher from a ServletRequest and from a ServletContex
HTTP Status 500
servlets
How to Jsp in servlet