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 is the directory structure of web application?
explain the advantages of servlet life cycle?
What are the objects involved when a servlet receives a call from client?
What is difference between jsp and servlet?
Explain the role of dispatcherservlet and contextloaderlistener.
What are different ways for servlet authentication?
Which method is called when reference variable is passed in system.net?
What is the difference between portlet and servlet?
how the HTML data stored in web server?
What is the workflow of a servlet?
What is the use of request dispatcher interface?
What is the use of servlet context?
What is the difference between the http servlet and generic servlet?
What are the mechanisms used by a servlet container for maintaining session information?
What is the need of servlet filters?