wood burning stoves 2.0*
The moose likes Servlets and the fly likes creates the RequestDispatcher object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "creates the RequestDispatcher object" Watch "creates the RequestDispatcher object" New topic
Author

creates the RequestDispatcher object

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Interface RequestDispatcher

Defines an object that receives requests from the client and sends them to any resource (such as a servlet, HTML file, or JSP file) on the server. The servlet container creates the RequestDispatcher object, which is used as a wrapper around a server resource located at a particular path or given by a particular name.


Creating object of an interface...didn't getya


No Kaustubh No Fun, Know Kaustubh Know Fun..
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
That is typical Java programming language and you better get used to it because it is universal.

You can refer to the name of the Interface implemented, the abstract class extended or even the Object.

Bill
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Why they made it so confusing
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I'm not sure they do. In each case they are talking about the behaviour, which is defined by the methods. While there will always be a concrete class required to do the actual work, we don't need to know what it ism, we only need to know how it behaves. That is, in this case it behaves like a RequestDispatcher.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

ohk
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creates the RequestDispatcher object
 
Similar Threads
[HFSJ 2nd Edition] chapter 5 Mock Exam Question # 15
redirect to another url using the post method
[HFSJ 2nd Edition] chapter 5 Mock Exam Question # 15
Request Dispatcher
When an error occurs, you can use RequestDispatcher to forward a request to another resource to hand