Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpServlet and GenericServlet

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
What is the difference between
a GenericServlet and an HttpServlet.
(I know that the second one exrends the first).
I want to know the context of usage.
Thanks
Prasad
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
GenericServlet is one which is generic, that is, it does not provide any protocol. HttpServlet supports Http protocol.
Generic servlet is useful when you wish to write your own protocol, for example your own http servlet or ftp servlet.
Httpservlet on the other hand provides ready to use features. I find this easy, because, it saves me LOTS of time and effort doing reaserch on some protocol.
Anik
 
prasad Chandrasekaran Iyer
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
generic servlet doesn't have the http functionality where Httpservlet does.
Prasad
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic