aspose file tools*
The moose likes Servlets and the fly likes why HttpServlet do not implemnet any super interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "why HttpServlet do not implemnet any super interface" Watch "why HttpServlet do not implemnet any super interface" New topic
Author

why HttpServlet do not implemnet any super interface

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why HttpServlet do not implemnet any super interface