keepworking
asked on
can not get value in the form
in 1.jsp
<form method='POST' action='2.jsp'>
<input class ="text" TYPE="text" NAME="email">
<INPUT TYPE="CHECKBOX" NAME ="auto_process" value ="Yes">
<SELECT NAME ="percentage">
<OPTION>100%</OPTION>
<OPTION>80%</OPTION>
</SELECT>
</form>
in 2.jsp
String email = request.getParameter("emai l"); //I can get email value
String auto_process = request.getParameter("auto _process") ; //but no value of auto_process
String percentage = request.getParameter("perc entage"); //but no value of percentage, why??????????????????????
<form method='POST' action='2.jsp'>
<input class ="text" TYPE="text" NAME="email">
<INPUT TYPE="CHECKBOX" NAME ="auto_process" value ="Yes">
<SELECT NAME ="percentage">
<OPTION>100%</OPTION>
<OPTION>80%</OPTION>
</SELECT>
</form>
in 2.jsp
String email = request.getParameter("emai
String auto_process = request.getParameter("auto
String percentage = request.getParameter("perc
ASKER
hi, objects:
I use break pointer to trace the values.
thanks
I use break pointer to trace the values.
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
blank
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
and for dropdowns you need to associate a value foreach dropdown element as suggested earlier.
<OPTION value="100%">100%</OPTION>
how are you checking whether u got the values?