• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Which class dose servlet usually inherit from??

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tanx Daniel
 
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic