Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: struts
Hi All,
 
I am having a jsp page which displays values in the database table using tag as follows:
<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 15-Mar-11 1:13am
Edited 15-Mar-11 1:26am
v3
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Markus is definitely on to something:
http://struts.apache.org/1.2.9/userGuide/struts-html.html#checkbox[^]
 
Best regards
Espen Harlinn
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Have you tried this?
  Permalink  
Comments
Espen Harlinn at 15-Mar-11 14:50pm
   
My 5
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  

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



Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 20 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100