Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

difference betwee ngeneric servlet & http servlet

 
laxmidhar prad
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
sir
what is the difference betwee ngeneric servlet & http servlet
 
subbarao N.V
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic