【发布时间】:2014-01-20 10:17:09
【问题描述】:
我正在尝试创建出现在选择标记中的复选框列表。我搜索了很多文章,我没有得到正确的输出。请帮我解决这个问题。
<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);" />
【问题讨论】:
-
您应该指定它是如何不起作用的。你得到哪个错误等等......
-
你想在选择标签中的每个选项都有一个复选框吗?
-
错过了“in select tag”部分...然后:stackoverflow.com/questions/17714705/…
-
是的,罗曼先生。只是我想在选择标签中为每个选项设置复选框
标签: jsp checkbox struts2 checkboxlist