rpong
asked on
EASY POINTS, I know you're not working! JSP parameter passing using Post form
--------------test.jsp----
<html>
<form action="getValues.jsp" method="post">
<input disabled type="text" name="test" value="myTest" >
</form>
</html>
--------------------------
-------------getValues.jsp
<html>
<h1> <% request.getParameter("test
</html>
--------------------------
is that suppose to display "myTest" on the getValues.jsp page?
ASKER
yes it does, it displays it as a disabled text field. Meaning, I will be unable to edit the field which is extremely necessary.
I will try your suggestion
I will try your suggestion
ASKER
oh yea, I forgot the submit button in the Test.jsp
<input type="Submit" value="Submit">
<input type="Submit" value="Submit">
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
No beans, it didn't work with removing the disabled
ASKER
hey that worked, removing the ";"!
really quick, why do I do remove the ";" in <%= request.getParameter("test ") %> but keep it with
<%
request.getParameter("test ") ;
%>
per radarsh
https://www.experts-exchange.com/questions/21738235/Form-parameter-passing-to-a-JSP-online-tutorials.html
kidding. thanks objects.
really quick, why do I do remove the ";" in <%= request.getParameter("test
<%
request.getParameter("test
%>
per radarsh
https://www.experts-exchange.com/questions/21738235/Form-parameter-passing-to-a-JSP-online-tutorials.html
kidding. thanks objects.
<% is for scriptlet, <%= is for evaluating expression and it doesn't require ;
ASKER
thanks objects.
ASKER
oh yea. btw, your suggestion to remove the disabled did work too.
with the text field disabled it contains a Null value. that's very unfortunate.....
with the text field disabled it contains a Null value. that's very unfortunate.....
try getting rid of disabled
does myTest show up in the text field in test.jsp