Waht is the difference between Generic servlet and HTTPServlet

Give me the answer

Questions by selvakumar

Showing Answers 1 - 22 of 22 Answers

Vasantha

  • Nov 10th, 2005
 

Generic servlet is protocal independent cannot support cookies httpsesiion and url writing it does not send large dataHttp servlet send large data its protocal indenpendent support coookies sessions

  Was this answer useful?  Yes

Shilpa Reddy

  • Nov 11th, 2005
 

HttpServlet is used to handle only http request & response but whereas Generic servlet can be used to handle any type of requests and responses , such as FTP... The other difference which we can fine between both of them is.. 

A GenericServlet has a service() method aimed to handle requests. HttpServlet extends GenericServlet and adds support for doGet(), doPost(), doHead() methods (HTTP 1.0) plus doPut(), doOptions(), doDelete(), doTrace() methods (HTTP 1.1).
Both these classes are abstract

  Was this answer useful?  Yes

Shilpa Reddy

  • Nov 11th, 2005
 

Http servelts can handle only http request & responses where as generic servlets can handle any type of requests & responses

  Was this answer useful?  Yes

anil choudary

  • Nov 11th, 2005
 

generic servlet doesnot maintain client session where as httpservlet maintains session.

  Was this answer useful?  Yes

veerendra nadh

  • Nov 12th, 2005
 

generic itself saying that not specific to any one it is generic but comming to the http it is specific to the http protocol

  Was this answer useful?  Yes

vikram joshi

  • Nov 15th, 2005
 

as part of javax.servlet a class Generic servlet is provided.this class implemens the servlet interface,in this class service() is declared as abstract and this class contains the code that is not specific to any protocol

as part of javax.servlet.http a class HttpServlet is provideded, this class is sub class of GenericServlet.this class implements the servlet interface and service() is not declared as abstract and this class contains the code that is specific to http protocol

  Was this answer useful?  Yes

nirmala

  • Nov 16th, 2005
 

generic servlet: developing the applications of dynamic & standalone

logical specifications for interactive not available

methods using in init(),service(),destory()

http servlet : developing the applications of dynamic & interactive

logical specifications for interactive is available

methods using init(),service(),destory(),doget(), dopost()

  Was this answer useful?  Yes

dhana lakshmi

  • Nov 18th, 2005
 

generic servlet can be used by any server.it is not specific to a protocol.http servlet is specific to http protocol.

  Was this answer useful?  Yes

MANOJKUMAR

  • Nov 23rd, 2005
 

the diff b/w generic and http servlet is http uses only http protocals where as generic uses ftpand other protocals to.

  Was this answer useful?  Yes

laxman

  • Nov 29th, 2005
 

GenericServlet is the super class for HttpServlet, and we have some extra methods like doGet(),doPost(),doDelete().... service() methods,We can maintain the sessions in case of HttpServlet, where as There is no concept of session maintainence in GenericSevlet.

 

  Was this answer useful?  Yes

Praveen kumar raju

  • Apr 4th, 2006
 

Hi ..

The answer is good.

i am the learner.i understand it much what u have posted.

Regards

praveen.

  Was this answer useful?  Yes

Anil kumar

  • Sep 16th, 2006
 

Http Servlet : It supports the http request and http responce... It supports any like Internet explorer, mozilla...etc.. Generic servlet : It supports the normal request and responces It supports only for Internet Explorer..... Thank You....

  Was this answer useful?  Yes

hingesh reshamiyya

  • Sep 18th, 2007
 

Generic Servlet is the parent class of all Servlet classes and extended by HttpServlet class

  Was this answer useful?  Yes

sampra

  • Mar 4th, 2008
 


Generic servlet is protocol independent, cannot support cookies, http session and URL writing, it does not send large data. Http servlet sends large data, its protocol independent and supports coookies sessions

  Was this answer useful?  Yes

sampra

  • Mar 6th, 2008
 

Generic servlets extend javax.servlet.GenericServlet. Generic servlets are
protocol independent, meaning that they contain no inherent support for HTTP or
any other transport protocol.


HTTP servlets extend javax.servlet.HttpServlet. These servlets have built-in
support for the HTTP protocol and are much more useful in an Browser environment

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions