Hi,

I am attempting to create a (fairly) simple web app using struts. I need to
create a table of questions with each question having radio buttons (a range
of numeric values) so the user can input and submit their answers:

question1        o o o o o o o o
question2        o o o o o o o o
...

My problem is that both the questions and the number of radio buttons needs
to be dynamic (based on what is currently in the database). I can iterate
through the questions and display them in the table but I am unsure how to
'marry' up the radio buttons, and then retrieve the data from the form when
the user submits.

Has anyone done anything similar to this ? Any example code or suggestions
would be gratefully recieved. I have been looking at the 'Using Struts'
article from the Athens Group 'Creating a Table of Radio Buttons' but am
getting more confused... (ProcessStatus.DONE.getMnemonic() - what is this
??)

Dan

Daniel Haynes

Reply via email to