On Tue, 12 Oct 1999, Carlos J. Herrera wrote:

> On Tue, 12 Oct 1999, Andy Bailey and Later Milt Epstein wrote:
>
> > > > You don't need more then one servlet for one application.
> > > It is also a bad idea to override the servlet service method as that
> > > is usually implemented by the ServletEngine vendor to route requests
> > > to the right place.
> >
> > Agreed.
>
> Help me clarify a couple things. Are the following statements true?
>
> - The servlet service method contains the code to call doGet or doPost.

Correct.  Basically, the HttpServlet service() method looks at what
HTTP method was used (GET, POST, etc.), and dispatches to the
appropriate doXXX() method (most of which have skeletal "this method
not supported by this URL" implementations).

The source code does (did?) come with the JSDK, so you should be able
to check this out yourself.


> - If we override the servlet service method, implementing doGet and
>   doPost methods becomes worthless.

Correct (unless you implement some similar scheme as above yourself).

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to