Hey Tania,
Whenever you append '?' to a URL, you are actually calling GET method. If
you want post method to be called, don't append your parameters in the URL.

Vijay

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of TaNiA
Sent: Monday, August 23, 1999 1:16 PM
To: [EMAIL PROTECTED]
Subject: parsing information from a form


Hi all,

I have a form which is generated (by the doGet() method) in MyServlet.java
when the following URL is called:
http://localhost:8080/servlet/MyServlet?group=A

When the user submits the form, the doPost() method in MyServlet is invoked
and the user's data is parsed by the doPost() method.
<form action = "/servlet/MyServlet" method = "post">

The problem I am facing is when I click on the submit button, I get the
error:

Http 405- Resource not found, page cannot be displayed.

somehow, the doPost() method is not called at all! I've put simple
out.println statements in the doPost method and it seems like doPost() is
not used at all!

Any ideas?

Is it because MyServlet was called with the parameter ?group=A and upon
submission of the form, there is no "group" parameter that's passed to
MyServlet's doPost() method?

Thanks heaps in advance,
tania

___________________________________________________________________________
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

Reply via email to