posted 12 years ago
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.