Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi All,

I am having a jsp page which displays values in the database table using <s:iterator xmlns:s="#unknown"> tag as follows:
XML
<s:iterator value="myList" var="bill">
         <s: property value="#bill.billId" />
         <s: property value="#bill.customerName" />
         <s: property value="#bill.amount" />
         <s: property value="#bill.paymentDate" />
</s:iterator>

I want to add a checkbox to each row. In the action class i want to get the id of the row whose checkbox has been clicked.

Is there any way to do this?

Thanks in advance.
Raneesh
Posted
Updated 15-Mar-11 0:26am
v3

Markus is definitely on to something:
http://struts.apache.org/1.2.9/userGuide/struts-html.html#checkbox[^]

Best regards
Espen Harlinn
 
Share this answer
 
Have you tried this?
 
Share this answer
 
Comments
Espen Harlinn 15-Mar-11 14:50pm    
My 5
I want to use checkboxlist in struts 2.0 but my condition is first we populated the checkboxlist from one database table when user select the checkboxlist than save another database table but i have to view and edit in the same fashion such as entry time
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900