why we should not override service() method in a servlet

why we should not override service() method in a servlet instead of overrriding helper method ie; doGet , doPost etc.
[124 byte] By [_abhia] at [2007-11-26 18:23:32]
# 1

Service method contain the code which checks the request method and invode the proper method based on request method (Ex:- doGet, doPost...)

If you want you can override the service method and that will make your servlet respond to all the HTTP request methods.

But in most cases you need to handle only get and/or post methods so you can simply override doGet and/or doPost methods.

LRMKa at 2007-7-9 5:57:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Service method in ur httpservlet will have the logic to call dopost or doget method according to the client http call..if u override in ur servlet, u are supposed to write the code for that.....if u dare to do so u can have service method overridden.....thanks and
mshanua at 2007-7-9 5:57:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...