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 getRequestDispatcher Method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "getRequestDispatcher Method" Watch "getRequestDispatcher Method" New topic
Author

getRequestDispatcher Method

Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 176
Hi Everyone

I have a question although i know it is very silly to ask but still just want to know . It as follows:

Why is it that the getRequestDispatcher method is in ServletRequest interface aswell as ServletContext interface ... ??

Although it sounds ok to be in ServletRequest interface because this interface contains all the methods which provide the request information's to the servlet. But why did they add this method in the ServletContext ??

Thanks in Advance!!!
J. Kevin Robbins
Bartender

Joined: Dec 16, 2010
Posts: 983
    
  13

Check this thread.


"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Tarun Oohri
Ranch Hand

Joined: Feb 20, 2013
Posts: 176
J. Kevin Robbins wrote:Check this thread.


Thanks dear .. i got it
 
 
subject: getRequestDispatcher Method