can we override service method in my servlet class..?? if
yes or no why ??
Answer Posted / muzaffar
Yes, we can override service method. But then we have to give our own implementation to detect which type of method request is using.(i.e GET or POST). Since we mostly use HTTP as a protocol itz best to extend HTTPServlet and override doGET or doPOST accordingly.
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What do you mean by session tracking and also explain its techniques?
Can we fetch the attributes related to a servlet on a different servlet?
Servlet is pure java object or not?
How does tomcat servlet container work?
Explain how to improve Servlet Performance?
What is the difference between 2 types of servlets?
What is the difference between servlet and filter?
What are the benefits of using servlet over cgi?
What is the use of welcome-file-list?
What are the functions of Servlet container?
What exactly are the functions of servlet?
How we can create war file in servlet?
Can you explain in detail 'javax.servlet' package?
What's the difference between authentication and authorization?
What is the difference between portlet and servlet?