File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt about ServletRequest Interface

 
Thennam Pandian
Ranch Hand
Posts: 163
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the docs. There is no other better substitute.
Thanks.
 
Thennam Pandian
Ranch Hand
Posts: 163
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where to fina a Docs .
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 328
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are hereJ2EE API docs

Suggestion : Download them..
Shrinivas
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic