Hi everybody, i have created one
jsp page and have written the server side code in
servlet.
In the jsp page i have declared two radio button like this
<input type="radio" name="sex" value="male">Male<br />
<input type="radio" name="sex" value="female">Female<br />
here name parameter is a radio button group name. so we can select any one radio button at a time.
Now i write the servlet code for reading the textfield value only.
But my question is
1.how can i read the radio button value/name?(you assume that if i click the male radio button in my jsp loginform what value/name returns to getParameter() method).
2. how to rectify which radio button is checked?
3.how to write the condition(male or female) for radio button in servlet code?
please any one tell me detailed answer for this question. because i am very confused.
by
sivakumar