aspose file tools*
The moose likes Servlets and the fly likes Hierarchy of Servlet Please 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 "Hierarchy of Servlet Please" Watch "Hierarchy of Servlet Please" New topic
Author

Hierarchy of Servlet Please

Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
Can you please answer the following simple question.
Which class does a servlet usually inherit from?
Thanks/Rashid Ali
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
HTTPServlet in most cases.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Sanjay Balu
Greenhorn

Joined: Aug 29, 2001
Posts: 11
HttpServlet for Http specific servlets,
Generic servlets for generic protocol independent servlets
Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
I submitted the answer of the above question as follows earlier but it was not accepted:

- javax.servlet.http.HttpServlet
and
- java.servlet.GenericServlet
But both the above answers were not accepted.
Is there anything left in my answers or there is some other answer for this question.
Need your feedback.
Rashid Ali
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Who did you submit that answer to?
hanumanth reddy
Ranch Hand

Joined: Jun 12, 2000
Posts: 118
java.lang.Object
|
+--javax.servlet.GenericServlet


<a href="http://www.jobklub.com" target="_blank" rel="nofollow">http://www.jobklub.com</a><br /> 'Add Job To Life'
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
I believe there is a mock exam out there tha he is referring to. I guess it's safe to say the mock exam is incorrect, if that's what it is.
shai koren
Ranch Hand

Joined: Nov 04, 2001
Posts: 48
or it could be from mycgiserver for jsp/servlet hosting.
http://www.mycgiserver.com
then try to signup and accept the terms...
[ February 12, 2002: Message edited by: shai koren ]

Shai koren<br />SCJP2 <br />SCEA (well yea only part 1 so far)
Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
Yep Shai Koren, at the time of submission of form, i was asked to answer the above question, i answered as mentioned above, but could not succeeded.
What to do with that.
Rashid Ali
Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
Sorry guys, i again tried today and succeeded! The problem was that i was supplying the answer in the quotes (which are not allowed) therefore it was not accepting the answer which is one of the above.
Thank you very much for your time and suggestions.
Kind regards
Rashid Ali
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hierarchy of Servlet Please
 
Similar Threads
server respose to client
Extracting Query String from URL
Servlet failed to preload on startup in Web application
MVC tutorial Head First
Servlet context