This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i have a question about how to use checkBoxlist in struts2:
it's possible populate a checkBoxlist reading value and checking box from database table.
Es: i have a table named Abilitazioni with this value :
idProfilo idFunzione Abilitato
1 1 YES
1 2 YES
1 3 NO
I'dlike to show the first and the second value in the checkboxlist checked, but I'don't know how to.
Use the action property (loaded from the DB) as the "name" attribute argument (or "key", depending on how you're using the tag).
Joined: Feb 22, 2010
David Newton wrote:Use the action property (loaded from the DB) as the "name" attribute argument (or "key", depending on how you're using the tag).
thanks for replay
I'm new with struts2.....
my tag is like this : <s:checkboxlist name="Abilitazioni" label="Abilitazioni" list="FunzioniAbil" listKey="id" listValue="description"/>
where listKey="id" id is value true o false but the checkboxlist item aren't checked....