Why does most servlets extend HttpServlet?

Answer Posted / magesh

The GenericServlet which is the base class of HttpServlet
does not have any handler methods (doGet or doPost) to
entertain the request.Since all web based application or
HHTP based we are extending the HttpServlet and overrinding
atleast one of the hanler methods to entertain the incoming
requests

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How database connectivity in XML is achieved?

1769


how do you Handle Front End Application data against DB with example?

1479


Can I import same package/class twice? Will the jvm load the package twice at runtime?

649


Is the session factory thread safe?

679


how i secure my site with the https protocol.what are the steps?

1738






the same information whether it will connect to the database or it will be used previous information?

577


Can I map more than one table in a cmp?

592


Which javutil classes and interfaces support event handling?

587


How are commas used in the intialization and iteration parts of a for statement?

587


whats is mean by tiles in struts

1624


What are transaction attributes?

616


What are the pros and cons of detached objects?

549


what are memory considerations of jsp compares to other web components?

6018


What is an abstract method?

596


How will you pass parameters in RMI? Why do you serialize?

705