Hi, I need to read the values of several radio buttons, possibily from a list or array but at moment I'm out of ideas how to make it work. I can't use javascripts on this project
I'm using struts2. My main problem is that the number of questions is variable so I don't know beforehand how many radio buttons I'll be reading. I need a way to dinamically add the values in such a way I can later associate each radio button (answer) with corresponding question and use them in following action, if particularly complex, the code to read the values would be welcome as well. All getters and setters are properly configured.
I'd be very gratefull if you could correct my code instead of providing some general example as I'm working overnight and I'm totally exausted.
I also noticed that once the client sees the
jsp I've the following problem
this is the jsp
the Action attributes
Class CoppiaD2R attributes
Class Domanda attributes (question)
Class Risposta attributes (answer)