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
Explain the servlet filter.
How do we translate jsp?
What is SingleThreadModel interface?
What is the purpose of inter-servlet communication?
How can you start a jta transaction from a servlet deployed on jboss?
What is called Session Tracking?
How can the session in servlet can be destroyed?
When servlet is loaded?
What are all the ways for session tracking?
How do you invoke a servelt?
What is servlet in simple terms?
Can you refresh servlet in client and server-side automatically?
What is cookie in servlet?
How can you use a servlet to generate a plain text instead of html?
Why do you use session tracking in httpservlet?