You can use logic iterate with index id
I hope it can help you.....
<logic:iterate id="ide" indexId="idx" property="data"
name="KLPPembayaranCetakKuitansiActionForm" >
<tr>
<td height="20" class="tdContent">
<div align="center">
<html-el:checkbox property="check[${idx}]"
value="${ide.noPolis} ${ide.pemPol} ${ide.nilaiKlaim}" />
<td class="tdContent">
<div align="center"><bean:write name="ide"
property="noPolis" /></div></td>
<td class="tdContent"><bean:write name="ide"
property="pemPol" /></td>
<td class="tdContent"><fmt:formatNumber
value="${ide.nilaiKlaim}" type="CURRENCY"
currencyCode="Rp"></fmt:formatNumber>
</td>
</tr>
</logic:iterate>
-----Original Message-----
From: Shane Mingins [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 11:28 AM
To: '[EMAIL PROTECTED]'
Subject: Can I Get the Index Value of Selected Option?
Hi
What is the best method to display a collection of items in a list to
allow
the user to select an item that is then passed on to some other action
or
process?
For example, if I was creating a Swing UI then I can use a JList and
call
the getSelectedIndex() method.
Ideally I would like to generate a <SELECT> element from a Collection
(optionsCollection) where the value submitted for the select property is
the
Index value of the selected option. Is that actually possible?
Am I looking in the right direction at
http://jakarta.apache.org/struts/faqs/indexedprops.html?
Or is it a job for JavaScript?
Any pointers, examples, resources etc would be great :-)
Thanks
Shane
Shane Mingins
Analyst Programmer
Assure NZ Ltd
Ph 644 494 2522
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]