Thread: Servlets
View Single Post
  #2 (permalink)  
Old 08-07-2007, 04:09 PM
singodiarakesh singodiarakesh is offline
Member
 
Join Date: Aug 2007
Posts: 2
singodiarakesh is on a distinguished road
The GenericServlet is an abstract class. It provides implementation of methods described in servlet interface like init, destroy etc. It is not dependent on any protocol. The HttpServlet extends GenericServlet and adds http specific behavior to it.It provides wrapping to convert simple request and response to http specific request and response. Like wise GenericServlet can be extended by any other class to implement funactionalities specific to a protocol like FTP. We cannot directly use GenericServlet since it is abstract.
Reply With Quote