Link to home
Start Free TrialLog in
Avatar of keepworking
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("email");   //I can get email value
String auto_process              = request.getParameter("auto_process");       //but no value of auto_process
String percentage              = request.getParameter("percentage");     //but no value of percentage, why??????????????????????
Avatar of Mick Barry
Mick Barry
Flag of Australia image

try:

<OPTION value="100%">100%</OPTION>



how are you checking whether u got the values?
Avatar of keepworking
keepworking

ASKER

hi, objects:

I use break pointer to trace the values.

thanks
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
blank
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
and for dropdowns you need to associate a value foreach dropdown element as suggested earlier.