This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

difference between Generic servlet & Httpservlet

 
laxmidhar prad
Ranch Hand
Posts: 33
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic