Andras Balogh wrote:
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=yesThis 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 methodspecial case (rarely used) :
<form method="get".....>
....
this will invoke also the servlet's doGet methodSo 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
begin:vcard n:Wang;Yuehan tel;fax:(410) 614-2064 tel;work:(410) 614-6980 x-mozilla-html:FALSE url:http://www.jhu.edu org:The Johns Hopkins University;The Advanced Technologies and Information System version:2.1 email;internet:[EMAIL PROTECTED] title:World Wild Web Developer adr;quoted-printable:;;2024 E. Monument St., Suite 1-200=0D=0A;Baltimore;MD;21205;U. S. A fn:Yuehan Wang end:vcard