help_me
asked on
Accepting radio button input from a form into a servlet
Please give me the code to get a value from a radio button when a form is posted to a servlet.
In my servlet I have:
cases=req.getParameter("ca se");
case is the radio button and cases is a boolean to store the value of it, true or false. This doesn't work as getParameter is looking for a String return from case not a boolean. What does a radio button return and how do I code for it.
Thanks
Mel
In my servlet I have:
cases=req.getParameter("ca
case is the radio button and cases is a boolean to store the value of it, true or false. This doesn't work as getParameter is looking for a String return from case not a boolean. What does a radio button return and how do I code for it.
Thanks
Mel
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.