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
If a servlet is not properly initialized, what exception may be thrown?
How do you find out what client machine is making a request to your servlet
hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code
What are the uses of servlets?
How do we call one servlet from another servlet?
What are the advantages of servlets over traditional cgi?
What is meant by session? Tell me something about httpsession class?
Is servlet synchronized?
What is the main purpose of java servlets?
Explain how does JSP handle run-time exceptions?
What are the different methods involved in generic servlet?
What is session tracking?
What do you mean by web applications?
What is the directory structure of a war file?
What are the uses of servlet