Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

difference between genericServlet & httpServlet

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi whats the main difference between Generic & httServlet??
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HttpServlet extends GenericServlet

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/GenericServlet.html

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServlet.html

-Yuriy
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic