Hi ,
regarding the lifecycle of
servlet , in headfirst servlet i can find :
You normally will NOT override the service() method, so the one from HttpServlet will run. The service() method figures out which HTTP method (GET, POST, etc.) is in the request, and invokes the matching doGet() or doPost() method. The doGet() and doPost()
inside HttpServlet don’t do anything, so you have to override one or both. This
thread dies (or is put back in a Container-managed pool) when service() completes.
now my question is how can i call the doGet method of the subclass from the superclass. i am not getting this .