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