When i read the book head first i thought that the service method calls the doGet method..but when i ran the program the service method never ran...why is it so?
Do What You Wanna Be....Taking Things The Way They Come
scjp 1.6 91 percent, scmad 90 percent(rounded off to nearest integer)
with this code the service method ran and then called doGet method
Thanks
Ankur Jain Kothari
Ranch Hand
Joined: Feb 08, 2010
Posts: 154
posted
0
this is the text from hanumant deshmukh...is this right?
If you override the service methods in your servlet class, you will lose the
functionality provided by the HttpServlet class, and the doXXX()
methods will not be called automatically. In your implementation, you will
have to determine the HTTP method used in the request, and then you will
have to call the appropriate doXXX() method yourself. For this reason, it’s
recommended to only override the doPost() or doGet() methods.
but in the code of the earlier post doGet was called even though i didnt call doGet from service method....can anyone explain please
Ankur Jain Kothari
Ranch Hand
Joined: Feb 08, 2010
Posts: 154
posted
0
i am so confused..sometimes service calls doGet even though i didnt call doGet from it...and other times it does....something is wrong with my netbeans