Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which class does a servlet inherit from?

 
Smilidon Sapiens
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Beksy Kurian
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is in mycgiserver.com. The answer is
javax.servlet.http.httpservlet
Regards
Beksy Kurian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic