照着网上的例子给列表加了一列复选框(代码如下),但是有些问题还是搞不明白1 我想要显示时,如果“用户标识(USER_ID)”一列的值为admin时则显示成选中状态,否则选成非选中状态
要怎么做比较方便呢  用 ${pres.USER_ID == "admin" ? "checked" : ""} 发现不行2 怎么遍历表单获得哪些行的复选框被选中了<ec:table
items="list" var="pres"
action="${pageContext.request.contextPath}/system/user/list.jsp"
title="用户列表"
rowsDisplayed="20"
filterable="false"
sortable="true"
autoIncludeParameters="true"
width="100%"
>
<ec:row>
  <ec:column width="30" title="选择" property="name"> 
<input type="checkbox" name="productID"  ${pres.USER_ID == "admin" ? "checked" : ""}/>
  </ec:column> 
  <ec:column width="50" title="用户标识" property="USER_ID" />
</ec:row>
</ec:table>