Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

difference between Generic servlet & Httpservlet  RSS feed

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
sir
what is the basic difference between Generic servlet & Httpservlet
 
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 ]
 
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.
 
Author and ninkuma
Marshal
Posts: 66352
155
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 ]
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!