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 Which class does a servlet inherit from? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Which class does a servlet inherit from?" Watch "Which class does a servlet inherit from?" New topic
Author

Which class does a servlet inherit from?

Smilidon Sapiens
Ranch Hand

Joined: Nov 02, 2000
Posts: 66
I found this question on a web site. You need to answer this to log in. I thought it is javax.servlet.HttpServlet, but this answer is wrong. So : Which class does a servlet usually inherit from?
Please help.Thanks.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
The question is not specific. Since there are two kinds of aservlets. Generic & Http Servlets. An Httpservlet inherits from javax.servlet.http.HttpServlet, while a Generic servlet inherits from javax.servlet.GenericServlet.
The bottom line is, the question is ambigous.

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Beksy Kurian
Ranch Hand

Joined: Jul 11, 2001
Posts: 254
The question is in mycgiserver.com. The answer is
javax.servlet.http.httpservlet
Regards
Beksy Kurian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which class does a servlet inherit from?