Because the base class already provides means to figure out what the HTTP method of the request is, and to dispatch to doGet or doPost and so on. Why reinvent the wheel?
And you should not be treating requests to different HTTP methods in the same fashion. That's a really prevalent poor practice.
Joined: Sep 05, 2010
Thank you. Though it doesn't make complete sense to me at this time because I've just started learning servlets, I am sure I will come back to this at a later time. Is there a recommended Web site for learning Servlets?