B,
jsp's are evaluated on the server side before the page goes to the client.
The form input in the HTML is only valid at the client side. You need to
use the request.getParameter() to process the response from the form
submittal.
-Richard Yee
zoho (Z)*
*The Premier Online Hospitality Marketplace
============================================================================
====
Richard Yee
Zoho Corporation
470 Potrero Ave.
Sunnyvale, CA. 94086
408-469-4216
[EMAIL PROTECTED]
============================================================================
====
-----Original Message-----
From: Balasubramanian Sundaramoorthy
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 22, 2000 2:41 PM
To: [EMAIL PROTECTED]
Subject: getParameter()
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
===========================================================================
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