jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes difference betwee ngeneric servlet & http servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

difference betwee ngeneric servlet & http servlet

laxmidhar prad
Ranch Hand

Joined: Feb 05, 2006
Posts: 33
what is the difference betwee ngeneric servlet & http servlet
subbarao N.V

Joined: Aug 21, 2006
Posts: 13
Hello sathya

First Question your self how many types of servlets?

Ans: infinite

GenericServlet is protocolindependent(that is it is working for all the protocols not only http,ftp,---------etc).

But Http servlet is developed based on Http protocol.If you extend the Httpservlet you are implementing servlet based on the http protocol.

Tommarow somebody has implementing FTpservlet by extending Generic Servlet.

If you extend Ftpservlet class ,your class supports only FTP protocol.

But out third party vendors implemting the http protocol heavily.
abhishek gowlikar

Joined: Aug 17, 2006
Posts: 13
Generic Serverlet is a General Servlet from where you can derive other Protocol Based Servlet like FTP,UTP,SMTP etc etc other then HTTP.

HttpServlet is Exclusively defined for HTTP request.

In Webdevelopment:99% projects are based on httpservlets only

Dont bother about Generic Servlet
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
The FAQ Wiki has some more discussion on this. The short version is: There once was the idea that somebody might implement servlets for other protocols, hence the factoring of generic functionality into GenericServlet. But in actuality, nobody ever did implement such a servlet engine.
I agree. Here's the link: http://aspose.com/file-tools
subject: difference betwee ngeneric servlet & http servlet
It's not a secret anymore!