I checked out the carts.jsp example that came with tomcat. I think that
shows the correct way of handling this. It starts with a .html file that
has carts.jsp as the form action. The carts.html collects the initial
field values and carts.jsp processes them and creates the next page.
When I use the request.getParameter("field1") from within the JSP where
field1
is defined as an input form control, it always returns only a null value.
Can
someone tell me why and what I am doing wrong?
For eg: if the lets say the JSP contains this.
<form name="form1">
<input type="text" name="field1" value="One">
</form>
<%=request.getParameter("field1")%>
-----------
The last line is always null.
Thanks for any response.
Bala.
===========================================================================
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