Hi,
There are very few "never" statements that are strictly true in
programming.  But it's fair to say you should rarely override the
service method.  Mostly it just checks the incoming request's method
(GET, POST, etc.) and called the appropriate method (doGet, doPost,
etc.).  Since you don't want to duplicate this logic, nor do you
normally want to deal with PUT, TRACE, and other misc requests, the most
common course is to implement doGet/doPost or both (usually one just
calling the other).

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Emerson Cargnin [mailto:[EMAIL PROTECTED]
>Sent: Monday, April 12, 2004 5:34 PM
>To: Tomcat Users List
>Subject: overriding service
>
>I've read somewhere that you should never override service method (from
>Servlet) and just override get/post methods???
>
>Is that true? Or the only problem is that overriding service method, no
>other method types will be called?
>--
>Emerson Cargnin
>Analista de Sistemas
>Setor de Desenvolvimento de Sistemas - TRE-SC
>tel : (048) - 251-3700 - Ramal 3181
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to