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

difference between genericServlet & httpServlet  RSS feed

 
bapi kumar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi whats the main difference between Generic & httServlet??
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"javaCloud inEarth",
please see the warning on your display name here.

Accounts with invalid display names get deleted, and I could have spent the time answering your question rather than asking you to change your display name

thanks
Dave.
 
Jack Wiesenthaler
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpServlet includes support for the HTTP protocol like HTTP response codes, methods to handle the HTTP verbs (GET, PUT, POST) and functionality to automatically parse the HTTP headers and expose these values etc.

A basic servlet provides CGI type support... you can use your own protocol and handle it within the service() method.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!