Hi Varley,
Do you have the properties that make up your compose key in the collection, becuase if you do you can try something like the following:
<logic:iterate id='row' .....>
<tr>
<td><input type='checkbox' name="<bean:write name='row' property='sub_key1' /><bean:write name='row' property='sub_key1' />"</td>
..... </tr> </logic:iterate>
************************************* Ruben Cepeda [EMAIL PROTECTED] *************************************
----Original Message Follows---- From: "Varley, Roger" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Select One Row Date: Thu, 26 Aug 2004 11:44:56 +0100
Hi
I'm starting my first Struts project and I have got a .jsp page that displays a list of beans using the logic:iterate tags. Now I need a method of adding a radio button against each row so that the client can select one of the rows for editing. Googling has taken me to the Struts Layout site and the collection tag (http://struts.application-servers.com/doc/tags/collection.html) which looks like it will do what I want. However, the example given assumes that there is one property that uniquely identifies each row. In my case, the unique key to the underlying database is a composite key consisting of three properties that together uniquely identify each row. I'd be grateful for any pointers to tutorials etc that would provide guidance on how to proceed.
Regards Roger
__________________________________________________________________________ This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos Origin group liability cannot be triggered for the message content. Although the sender endeavours to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted. __________________________________________________________________________
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]