I am assuming you are using Apache+Tomcat.  The POST does not work with a
standard mod_jserv that comes with jserv RPM.  Try using the mod_jserv.so
from Tomcat 3.1.  Just replace the mod_jserv.so that you are currently using
with the new one.

Petar Gacesa (Systems Integrator)
Thomson Interactive Media
208 Harbor Drive, 3rd Floor
Stamford, CT 06902
Tel: 203-425-1129
Fax: 203-425-1196


-----Original Message-----
From: Matt Krevs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 23, 2000 12:50 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 3 not accepting form parameters in the doPost() method


I am having heaps of trouble getting a form that is submitted using the post
method to pass the parameters to a servlet, although using the get method
works fine.

Code is as follows

<form id=loginForm action="/servlet/com.mycompany.LoginServlet" method=post
onsubmit="return loginClicked()">
        <input type=hidden name="param1" id="param1" value="test" />
        <input type=hidden name="param2" id="param2" value="test2" />
        <input type=hidden name="param3" id="param3" value="test3" />
</form>

in my servlet, request.getParameter("param1") returns null if the form
method is "post", but it returns "test" if the form method is "get".

Has anyone come across this problem before? Is it a known Tomcat 3.0
problem?

I searched the archives and found a similar problem mentioned when using
JServ.

Any help greatly appreciated.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to