PDA

View Full Version : Radio button implementation


iwantvib
Sep 13th, 2007, 01:57 AM
I am having an array of questions with 4 options each. I am trying to put 20 questions in a c:for each tag and iterate all questions to show them on my JSp and and i want to link 4 options with spring:bind tag using radio buttons

i need help for spring radio button implementation.....

my Questions are in QuestionForm Object which have 6 attraibutes

String question
String optionOne
String optionTwo
String optionThree
String optionFour
String answer

and 20 QuestionForms objects are in a big Object Of Test Form which include List of QuestionForm object


please help....

iwantvib
Sep 19th, 2007, 08:31 AM
I am able to find the solution.........:)

just iterate all the questions using C:for each and use loop option to iterate through the Radio Button options..............................