aspose file tools*
The moose likes Servlets and the fly likes HttpServlet and GenericServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpServlet and GenericServlet" Watch "HttpServlet and GenericServlet" New topic
Author

HttpServlet and GenericServlet

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jan 14, 2004
Posts: 18
Hi
generic servlet doesn't have the http functionality where Httpservlet does.
Prasad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HttpServlet and GenericServlet
 
Similar Threads
how to get values from httpservlet to genericservlet
difference between GenericServlet and HttpServlet
Basic Servlet Doubt
about http actions in while using generic servlet
GenericServlet Vs HttpServlet