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 Doubt about ServletRequest Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Doubt about ServletRequest Interface " Watch "Doubt about ServletRequest Interface " New topic
Author

Doubt about ServletRequest Interface

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Dear Friends,

we are using getParameter() of the interface ServletRequest.

The interface can't implement it's method. then which class implent

ServletRequest interface. i am sure that GenericServlet class also


didn't implement it


please help me ..............
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by Thennam Pandian:
Dear Friends,

we are using getParameter() of the interface ServletRequest.

The interface can't implement it's method. then which class implent

ServletRequest interface. i am sure that GenericServlet class also


didn't implement it


please help me ..............



Actually, when you call req.getParamater() or any method, req is not referring to HttpServletRequest *object* (at the very first place interface can't be instantiated), it is actually referring to a class that is implementing this interface and has all methods implemented in it...

And container create this class and provide implementation of methods...

Hope it is right...


[ December 29, 2005: Message edited by: rathi ji ]
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Read the docs. There is no other better substitute.
Thanks.
Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Where to fina a Docs .
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by Thennam Pandian:
Where to fina a Docs .


Servlet Doc.
JSP Doc.
[ January 02, 2006: Message edited by: Adeel Ansari ]
Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
They are hereJ2EE API docs

Suggestion : Download them..
Shrinivas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt about ServletRequest Interface