Hi, The service() method in HttpServlet checks the request HTTP method and calls doGet(), doPost(), doHead(), etc. The default implementations in HttpServlet simply output a message to let the world know you messed up. For GenericServlet you override service() and provide your own checking of the HTTP method, if desired.
Larry > -----Original Message----- > From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 04, 2001 3:19 PM > To: Tomcat Users List > Subject: Re: HTTP method POST is not supported by this URL > > > Larry Isaacs wrote: > > > If you POST to a servlet which extends HttpServlet and that > > servlet doesn't override the doPost() method, the default > > doPost() method outputs this error message. > > Why? I thought that the default "doPost()" just calls > "service()". I didn't have > to override anything in GenericServlet, so you could be right. > > Nix. > > > -- > To unsubscribe: <mailto:[EMAIL PROTECTED]> > For additional commands: <mailto:[EMAIL PROTECTED]> > Troubles with the list: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>