Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.
Note that the listkey
and listvalue
attribute will default to "key"
and "value"
respectively only when the list attribute is evaluated to a Map or its descendant. Everything else will result in listkey
and listvalue
to be null and not used.
Creates a series of checkboxes from a list. Setup is like <s:select />
or <s:radio />
, but creates checkbox tags.
{% remote_file_content https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/checkboxlist-description.html %}
{% remote_file_content https://raw.githubusercontent.com/apache/struts/master/core/src/site/resources/tags/checkboxlist-attributes.html %}
<s:checkboxlist name="foo" list="bar"/>