Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Doubt about ServletRequest Interface

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

Suggestion : Download them..
Shrinivas
reply
    Bookmark Topic Watch Topic
  • New Topic