File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hierarchy of Servlet Please

 
Rashid Ali
Ranch Hand
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please answer the following simple question.
Which class does a servlet usually inherit from?
Thanks/Rashid Ali
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTPServlet in most cases.
 
Sanjay Balu
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpServlet for Http specific servlets,
Generic servlets for generic protocol independent servlets
 
Rashid Ali
Ranch Hand
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who did you submit that answer to?
 
hanumanth reddy
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.Object
|
+--javax.servlet.GenericServlet
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rashid Ali
Ranch Hand
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 349
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic