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
What’s jboss jbpm?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
What are the different types of exception?
What is the relationship between the canvas class and the graphics class?
What is meant by method chaining?
What is a modular application? What does module-relative mean?
Can you give me a simple example of using the requiredif validator rule?
How to pass parameters in RMI?
What class is used to create Server side object ?
What is the purpose of the notify() method?
What is the purpose of the notifyall() method?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
How are commas used in the intialization and iteration parts of a for statement?
Explain about RMI Architecture?
Is the session factory thread safe?