can we override service method in my servlet class..?? if
yes or no why ??

Answer Posted / manidhar

NO. Very unlikely.
You should NOT override the service()method. Your job is to
override the doGet()/doPost() methods and let the service()
implementaion form HTTPServlet worry about calling the
right one.

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of an http request?

585


What are the uses of servlets?

622


What do you mean by url pattern in servlet?

631


What is the process to implement doget and dopost methods?

548


How does Cookies work in Servlets?

651






How httpservlet is different from the genericservlet?

566


Why do we need a constructor in a servlet if we use the init method?

519


How to get the current httpsession object?

653


What is the use of httpservletrequestwrapper?

592


What is meant by a servlet?

605


How can we include static files in the jsp page?

614


What is the difference between portlet and servlet?

514


Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com

1744


What is meant by cookies?

613


What are the life-cycle methods for a servlet?

557