• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

collection of radio buttons

 
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have an index page which displays 10 set of questions. Each question has a radio button group.

Ex:

Q1) Which state do you live?
.NY .MO .CT (there are radio buttons)
Q2) Which is your favorite color?
.red .blue .green
Q3) Which is your favorite food?
.burger .pizza .chicken
Q4) ........and so on

I have a hyperlink(next) on this page when clicked i need to capture all the answers for these questions i.e., i need to store collection of radio button answers. do i need to have 10 get/set methods with the same name as of radio button names in the form to capture answer for each question? and when i click the link how do i caputure the form values?? How do i do that?? any ideas??

Thanks in advance,
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Instead of having your hyperlink go to the next page, have it call a javascript function that submits the form. You can them have a Struts action forward to the next page.
reply
    Bookmark Topic Watch Topic
  • New Topic