我正尝试创建出现在选择标记中的复选框列表。我搜索了很多文章,我没有得到适当的输出。请帮我解决这个问题。如何使用struts2在选择框中添加复选框
<s:checkboxlist list = "%{cityList}"
name = "cityNo"
id = "cityNo"
cssClass = "margin-right margin-top required-field"
cssStyle = "width: 114px;height:30px"
headerKey = "0"
headerValue = "City"
listKey = "id"
listValue = "cityName"
onfocus = "getcitywithCountry(false);" />
你应该指定如何这是行不通的。您遇到哪种错误等等...... –
您想在选择标签中选择每个选项的复选框吗? –
错过了“在选择标记”部分...然后:http://stackoverflow.com/questions/17714705/how-to-use-checkbox-inside-select-option –