Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GenericServlet class and HttpServlet class  RSS feed

 
mukesh chandan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all..
why we have two abstract classes called GenericServlet class and HttpServlet class...
can we work only with GenericServlet class?

thanks to all..
 
Rahul Pakhare
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpServlet is spacific to the Http Protocol, If you wnat to use the another Protocol then you cant use the HttpServlet in this case you use the GenericServlet. in short GenericServlet is for any Protocol and HttpServlet is for Http Protocol
 
mukesh chandan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks rahul...

and welcome to javaranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!