JSP Radio button iterate problem

I hope I'm posting on the right section of the forum, but I really need help badly.

I have an action form let's say. questionform with attributes of string question, question choice 1, question choice 2, question choice 3, question choice 4, and answer. (all with proper getters and setters)
My program requires me to connect to the database, get the quiz the user is taking, and from there, use the information to get the questions of the quiz.
once the user has to answer the quiz, my action class will connect to the database and get all the questions of the quiz,

I stored these in an array list and put it in session.set attribute . I will then be forwarded to a jsp page where the questions are being properly outputed.

Now. My problem is when iterating.

Within my jsp page i have the

<iterate tag>
bean output etc etc
<closing iterate>

my problem comes from trying to create radio buttons for the question choice

but this doesnt seem to work, any examples? the bean being submitted to contains a string of answers
String answers[]; with getter and setter

How do I go on implementing this? And is there a way to store all these to a bean, even when you don't know how many questions there will be in the first place? Once the user clicks on the sbumit btton, ALL questions(and the answer the user picked) should be stored in the bean.

Well to create separate groups for radio buttons, you need to provide them separate value in the name parameter. So all the options for question one must have name1, for question 2 - name2 and so on. And I think it would be better if you provide some proper code instead of fragments so that we can understand the problem better and help you with your problem.