Hi !!
I think your problem is something else.
Let me explain something:
There are two (most common) ways to invoke a servlet.
The first one is : http://www.somewhere.com/servlet/YourServlet
or
http://www.somewhere.com/servlet/YourServlet?param1=1¶m2=yes
This will invoke the servlet's doGet method .
The second one by having in a HTML form:
<form method="post"
action="http://www.somewhere.com/servlet/YourServlet">
<input type....>
</form>
this will invoke the servlet's doPost method
special case (rarely used) :
<form method="get".....>
....
this will invoke also the servlet's doGet method
So if U write in a browser ( i think this is your case)
http://www.somewhere.com/servlet/YourServlet
this will ALWAYS look for the doGet method and since U don't have it you get
the error message.
So if U want that your servet's doPost mehod to be invoked you need a HTML
PAGE with a FORM in it.
Hope it helps.
Best wishes,
Andras
-----Original Message-----
From: Duke Martin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, May 24, 1999 6:01 PM
Subject: doPost method error??? Please help!!!
>Hello,
>
>Why is it that when I begin my servlet with 'doPost' rather thatn 'doGet',
>I receive a "GET is not supported by this url" error???
>
>Duke
>
>___________________________________________________________________________
>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
___________________________________________________________________________
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