• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

radio button values

 
meenakshi s venkateswaran
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Abhinay Verma
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic