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
Write a program to show the functionality of servlets.
What is context in servlet?
What are the uses of servlets?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What is api in servlet?
Explain the lifecycle of a servlet?
What are different ways for authentication of servlet?
What is meant by cookies?
Difference between httpservlet and generic servlets?
What is the functionality of actionservlet and requestprocessor?
How do you configure a centralized error handler in servlets?
How can you create a session in servlet?
What is the workflow of a servlet?
how to link html file to sevlet file.one name is textbox,c&c++ is cheakbox,bc&mca is radio button and one submit buttonis ok why in this programme use in servelt file
Can you explain in detail 'javax.servlet' package?