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

servlets

 
vasanthrao kumarbabu
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi , if we want to write any servlet this should be extends from HttpServlet it is an abstract class but in our class we are not implementing any methods. and we are not declaring our class as abstract why it is.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vasanthrao kumarbabu:
we are not declaring our class as abstract why it is.


There are no methods in HTTPServlet class which are abstract.So no need to declare the class abstract which is extending the HTTPServlet class.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want your servlet to do something, you'll have to override at least one of the methods. Usually this is doPost, doGet, or both.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic