• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

passing a list of radio buttons values in struts2 from jsp to action

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic