can we override service method in my servlet class..?? if
yes or no why ??
Answer Posted / ruchi
we can override service method in my servlet class if the
request is not protocol dependent.
Bcoz we exdend HttpSrevlet class to handle Http GET and
POST requests and we have to override some methods like
doGet,doPost,doHead,doPut,doDelete.
But if u want to override service method then u have to
extend genricServlet Class.Then only u can implement Service
() method.
| Is This Answer Correct ? | 52 Yes | 8 No |
Post New Answer View All Answers
What’s the difference between genericservlet and httpservlet?
What is called servlet container?
Describe the phases of servlet lifecycle?
Which java application server is the best?
Why filter is used in servlet?
How many objects of a servlet is created?
What are the objects involved when a servlet receives a call from client?
Why jsp is better than servlet?
What are the different session tracking techniques?
What is the type of method for sending request from http server?
What do you mean by scope object and what are its types?
How can you start a jta transaction from a servlet deployed on jboss?
Define context initialization parameters.
What are its drawbacks of cgi?
What are the important functions of filters?