Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Hierarchy of Servlet Please  RSS feed

 
Ranch Hand
Posts: 349
  • 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
 
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTPServlet in most cases.
 
Greenhorn
Posts: 11
  • 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
  • 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
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who did you submit that answer to?
 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.Object
|
+--javax.servlet.GenericServlet
 
Bosun Bello
Ranch Hand
Posts: 1512
  • 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.
 
Ranch Hand
Posts: 48
  • 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
  • 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
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!