aspose file tools*
The moose likes Struts and the fly likes Radio button with a variable size list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Radio button with a variable size list" Watch "Radio button with a variable size list" New topic
Author

Radio button with a variable size list

Bob Fer
Greenhorn

Joined: Feb 14, 2005
Posts: 1
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.
 
jQuery in Action, 2nd edition
 
subject: Radio button with a variable size list