Many people will not use this label. The usage is as follows:
<Tr> <TH> select a role </Th> <TD> <s: checkboxlist list = "# request. roleuserlist "listkey =" roleid "listvalue =" rolename "value =" # request. rolelist. {roleid} "name =" roleids "> </S: checkboxlist> </TD> </tr>
Where # request. roleuserlist is placed in the request scope in the backgroundRoleuserlistThis list;
Listkey = "roleid" The roleid corresponds to the roleid of the bean attribute in the background roleuserlist. The listkey is also the value to be passed in to the background;
Listvalue = "rolename" is naturally the content displayed on the page;
Value = "# request. rolelist. {roleid}" means to select the default value for S: checkboxlist and put the corresponding background in the request ScopeRolelistRoleid in this list is combined into an array,
Similar to {1, 2, 3}, then the tag will automatically match.
Name = "roleids" This roleids can be set in the background action by using the Get Set roleids array attribute or directly using the request scope value, which must be placed in the array;
The effect is similar: