ectable/ecside 取值问题

jsp:

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/extremecomponents.tld" prefix="ec" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>

 

<ec:table width="800" items="infomap" var="infoForm" rowsDisplayed="10" title="信息列表" sortable="true">
  <ec:row>

  <ec:column property="id" title="&nbsp;"><input type='checkbox' value='${infoForm.id}' name='id'>${infoForm.id }</ec:column>

      </ec:row>

</ec:table>

 

action:

request.setAttribute("infomap",ArrayList<infoForm> info...);

...

String id = request.getParameter("id");

 

这个String id 取出来是空,经过查找,发现 ec 里面的 checkbox value是空的缘故。再说,ec:column 后面一个${infoForm.id} 也是空,前面一个试过用 js alert测试过弹出来也是空值。求解

${infoForm.id }/ec:column

在这个位置直接输出下 ${infoForm}试试

1、infomap在后台是否有值
2、items="infomap" 是不是应该是items="${infomap}"