Two Laptop Bag*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which class dose servlet usually inherit from??
 
Similar Threads
Which class does a servlet usually inherit from?
Hierarchy of Servlet Please
Inheritance
simple question
Which class does a servlet inherit from?