Re: Http Servlet Service method
Thursday, February 7, 2002 07:43 AM
if you do not override the service() method it will be dispatched to doGet(), doPost() .... if you override it, you are on your own. if you want to forward, then you forward. basically it is a matter of where you want to put your code, service() or doXXX() methods. if you put the code in doXXX() methods, service() will forward request to it. if you override, then your code is in service() and question of whether the request should be forwarded elsewhere or not is in your hands. You could forward but you could also put all your logic in service(). different people prefer different implementations. some override service() some provide doXXX()s and leave the service() alone. pick your poison ...