• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why HttpServlet do not implemnet any super interface

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

van you tell me why does HttpServlet do not implemnet neighter super Interface nor Super Class'(Abastarct) methods.

doubts

1/ does container do the work which we are supposed to do?

2/ does it mean this rule is applicable to all of Java Programming?

Plese give me any other information if you have with you in this regard.

Rahul
[ November 29, 2006: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is up to the container creators to implement those methods.
If you are curious, the source code to Apache Tomcat can be download for inspection.

http://tomcat.apache.org/svn.html

We (application developers) only need to implement the methods that we wish to override.
Typically, these are:
init, doPost, and doGet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic