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
How httpservlet is different from the genericservlet?
Explain in brief the directory structure of a web application?
How do you create a cookie using servlet?
What is meant by Servlet? What are the parameters of service method?
What is the use of servlet context?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
What is the life cycle of a servlet?
What is the difference between forward () and sendredirect () functions in servlet? Explain
Difference between java beans & servlets?
How is a servlet implemented in code?
Why are http servlets used in programming?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
What is servlet and its advantages?
What exactly is a servlet?
What is the use of request dispatcher interface?