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
Name the packages that work with servlet?
What is load-on-startup in servlet?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What is java servlet?
What is string tokenizer?
Why is servlet used?
What do you mean by httpservlet and how it is different from the genericservlet?
How to get the IP address of client in servlet?
What is meant by servlet? What are the parameters of the service method?
Is it possible to have a constructor inside the servlet?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
How do you find out what client machine is making a request to your servlet
What is the procedure of invoking different servlet in a different application?
What are the features added in Servlet 2.5?
Explain url encoding in servlet?