This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Which class dose servlet usually inherit from?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Which class dose servlet usually inherit from??" Watch "Which class dose servlet usually inherit from??" New topic
Author

Which class dose servlet usually inherit from??

Amit Roy
Ranch Hand

Joined: Oct 10, 2000
Posts: 132
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)


<I>Chance Favours the Prepared minds"</I>
Jason Stortz
Ranch Hand

Joined: Jan 11, 2001
Posts: 68
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

Joined: Jan 05, 2001
Posts: 81
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

Joined: Oct 10, 2000
Posts: 132
Tanx Daniel
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Which class dose servlet usually inherit from??