• 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

Radio button with a variable size list

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Struts 1.2 and I've a form with a list of selectable items. The content of the list is obtained from a bean with an ArrayList containing objects of a class User with name, last name, phone, address,... I want to set a radio button on the left of each row to let the user select one and only one user. Besides the ArrayList size is variable, the most important problem is that I have to set both the radio button and the User fields inside a <logic:iterate> tag and I have no clear idea of how to link both inside the tag in a way I can know which radio button selected is related to each line of my bean. Any idea? Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic