Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which class dose servlet usually inherit from??

 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
mines is a strange problem though i have been doin Servlets for quite a while now i couldnt figure what answer is expected when you try to fill out the form for free web space at www.mycgiserver.com i tried all the possible may be answers but i couldnt pls help
the Question Goes
"Which class dose servlet usually inherit from ??(Complete name)
 
Jason Stortz
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Amit Roy:
hi friends,
mines is a strange problem though i have been doin Servlets for quite a while now i couldnt figure what answer is expected when you try to fill out the form for free web space at www.mycgiserver.com i tried all the possible may be answers but i couldnt pls help
the Question Goes
"Which class dose servlet usually inherit from ??(Complete name)

Well, I think Servlet itself is an interface...GenericServlet implements Servlet. According to the API ALL servlets must implement Servlet interface. A lot of examples extend GenericServlet and hence implement Servlet.
Take note of: http://java.sun.com/products/servlet/2.3/javadoc/index.html
I hope that helps!
Jason
 
Daniel Olson
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what they want is
javax.servlet.http.HttpServlet
That is what I typed in, and it worked for me.
 
Amit Roy
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tanx Daniel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic