Meaningless Drivel is fun!*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Radio button with a variable size list" Watch "Radio button with a variable size list" New topic

Radio button with a variable size list

Bob Fer

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.
I agree. Here's the link:
subject: Radio button with a variable size list
Similar Threads
<c:forEach> not working properly
Processing Radio Buttons in a Form/Servlet
logic:equal question
passing hidden values
problem using ejb 2.0 stateful session bean