kid3180 2012-09-14 08:50
浏览 300
已采纳

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测试过弹出来也是空值。求解

  • 写回答

2条回答 默认 最新

  • jinnianshilongnian 2012-09-14 09:05
    关注

    ${infoForm.id }/ec:column

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料