Re: Q. suppose, one servlet extends HttpServlet is having .........
Tuesday, May 20, 2003 09:40 AM
Normally you don't overwrite service(). The service method will for you look after what type of method it is (get/post) and will call the doGet or doPost itself.
So if you want your servlet to do the same for a post as for a get you would implement service() or make sure doGet and doPost do the same job.
If you want doGet and doPost to do something else, you just give them another implementation.