Bookmark Topic Watch Topic
  • New Topic

difference between Generic servlet & Httpservlet

 
laxmidhar prad
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
sir
what is the basic difference between Generic servlet & Httpservlet
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
GenericServlet exists to allow the handling of request using any protocol. Its abstract, so you implement how it handles whatever protocol you want it to support.

HttpServlet is an implementation of GenericServlet that handles HTTP.


Not a JDBC question. Please be more careful where you post things. Someone will move this shortly.
[ August 18, 2006: Message edited by: Paul Sturrock ]
 
kancherla laxmi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
generic servlet process the request using service() method.
Httpservlet process the request using doGet() and doPost()method.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65680
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please take the time to choose the appropriate forum for your questions. This forum is for JDBC questions.

As this question is asked many times in the Servlets forum and is answered in the Servlets FAQ, I'm closing this topic.
[ August 18, 2006: Message edited by: Bear Bibeault ]
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!