RE: Post method not supported....

2001-03-15 Thread Dianne Cree

You need to make sure that you have both doGet and doPost included.  If your
code is all in doGet then just write doPost like below.  It calls doGet.  I
had this same problem the first time I tried to POST.

   public void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException
   {
  doGet(request,response);
   }

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 4:40 PM
To: [EMAIL PROTECTED]
Subject: Post method not supported


Hi, I have an unusual problem. I have a feeling that it has to do with
either
server.xml or web.xml configuration. I wrote a servlet that initializes both
'doGet' and 'doPost' method. The main page is called by the doGet method
that
prints out the HTML tags which has a Form Method=Post tag in it. When I
press submit I get this message:

2001-03-14 07:34:06 - Ctx( /Root ): 400 R( /Root +
/BulletinBoard/BulletinBoard
+ null) HTTP method POST is not supported by this URL

It appears that the server is saying that it can't handle the Form
Method=Post
Post method.  Why is it doing this? Anyone knows???




Post method not supported....

2001-03-14 Thread JeremyRayYoo

Hi, I have an unusual problem. I have a feeling that it has to do with either 
server.xml or web.xml configuration. I wrote a servlet that initializes both 
'doGet' and 'doPost' method. The main page is called by the doGet method that 
prints out the HTML tags which has a Form Method=Post tag in it. When I 
press submit I get this message:

2001-03-14 07:34:06 - Ctx( /Root ): 400 R( /Root + 
/BulletinBoard/BulletinBoard
+ null) HTTP method POST is not supported by this URL

It appears that the server is saying that it can't handle the Form 
Method=Post 
Post method.  Why is it doing this? Anyone knows???



Re: Post method not supported....

2001-03-14 Thread Milt Epstein

On Wed, 14 Mar 2001 [EMAIL PROTECTED] wrote:

 Hi, I have an unusual problem. I have a feeling that it has to do
 with either server.xml or web.xml configuration. I wrote a servlet
 that initializes both 'doGet' and 'doPost' method. The main page is
 called by the doGet method that prints out the HTML tags which has a
 Form Method=Post tag in it. When I press submit I get this
 message:
 
 2001-03-14 07:34:06 - Ctx( /Root ): 400 R( /Root + 
 /BulletinBoard/BulletinBoard
 + null) HTTP method POST is not supported by this URL
 
 It appears that the server is saying that it can't handle the Form
 Method=Post Post method.  Why is it doing this? Anyone
 knows???

Well, I believe that is the classic message issued when you have not
implemented doPost(), so that's the first thing I'd suggest.  But you
say you have implemented it, so I'm not sure what to make of that.
Maybe you should verify the spelling, capitalization, access level,
etc. of the method.

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