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??????????????????????
keepworkingAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mick BarryJava DeveloperCommented:
try:

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



how are you checking whether u got the values?
keepworkingAuthor Commented:
hi, objects:

I use break pointer to trace the values.

thanks
Mick BarryJava DeveloperCommented:
are you getting null or blank?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

keepworkingAuthor Commented:
blank
Mick BarryJava DeveloperCommented:
is the checkbox checked?
mrigankCommented:
In case of checkbox, the checkbox name is passed as a request parameter only if the checkbox is checked. No specific value is passed.
If checkbox is not checked, you get a null. i.e. the checkbox is not submitted with the form.
If checkbox is checked, you get a blank, but the checkbox name is a part of the request  parameter it is submitted with  the form.
mrigankCommented:
and for dropdowns you need to associate a value foreach dropdown element as suggested earlier.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.