> I wrote a simple JSP  page with a form in it.  This form had a couple of
> text elements and a submit button and I want the submit from this form to
be
> handled by a servlet.  However, when I set the method of the form to
"POST",
> my servlet does not get the parameters (neither the text elements nor the
> submit button), whereas if the method is "GET", these parameters come
> through fine.
Use request.getParameterValues() instead of getParameter(). You have to do
this because POSTed forms can contain multiple values for each parameter.

_3
M

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to