struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Muthu Velappan" <>
Subject RE: checkboxlist
Date Thu, 26 Mar 2009 09:25:21 GMT

<s:checkboxlist required="true" key="permissions" list="activePermissions"
value="permissions" name="permissions">
	<s:param name="rowstyle" value="%{'row31'}" />

list="activePermissions" hold the entire collection holding Map<Permission
Id, Perimssion Name>.
value="permissions" holds the Set<Permission Id> that are applicable for
this user. 

So, you can assume it like this.. The set you provide in "list" will get
rendered as checkboxes and set in "value" will be used to check the rendered

Hope this helps you...

-----Original Message-----
From: [] 
Sent: Tuesday, March 24, 2009 3:53 PM
Subject: checkboxlist

Can anyone tell me how I can make a checkboxlist on my jsp that knows
which checkbox should be checked and which not.
I have my list of objects with three strings.
string1: name (label for the checkbox)
string2: key (value that identifies which object is checked)
string3: true or false (that says if that checkbox should already be
But for the checkboxlist tag I see only the listValue and listKey
parameters that write a property of the object.
All the other properties are not dependent on the object of the list..

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message