aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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: 1277

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: 12805
    
    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: 1277

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: 1277

ohk
 
 
subject: creates the RequestDispatcher object