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
posted 11 years ago
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 ]