Forums Register Login

radio button values

+Pie Number of slices to send: Send
Hi..

I have some questions in a form which have 2 radio button type answers each. The qns are added by means of a for loop which means that the radio buttons have the same names. When the form is loaded, I am able to select only one, since the radio buttons have the same name. Can someone please help me so that I can assign the radiobuttons different names and access them in the servlet?

Thanks in advance
Meenakshi
+Pie Number of slices to send: Send
Hi Meenakshi,
Your page is generated dynamically. So, you can append the loop index to the name of the radio button. For example,


This will allow you to get the user selected values in your servlet. I hope this would solve your problem. Let me know if you have any queries.
[ April 11, 2005: Message edited by: Abhinay Verma ]
He was expelled for perverse baking experiments. This tiny ad is a model student:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1701 times.
Similar Threads
collection of radio buttons
Please help me regarding the forms selection
Radio Buttons
radio button
setState() with JRadioButton
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 17:12:54.