aspose file tools*
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
Author

difference betwee ngeneric servlet & http servlet

laxmidhar prad
Ranch Hand

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

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
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: difference betwee ngeneric servlet & http servlet