<% float collectHour=0; %>
<logic:iterate id="ops" name="outputs" scope="request">
<%collectHour+=1;%>
<tr>
<td class="td_font"><bean:write name="ops" property="empName"/></td>
<td class="td_font"><bean:write name="ops" property="partID"/></td>
<td class="td_font"><bean:write name="ops" property="partName"/></td>
<td class="td_font"><bean:write name="ops" property="workID"/></td>
<td class="td_font"><bean:write name="ops" property="listID"/></td>
<td class="td_font"><bean:write name="ops" property="unit"/></td>
<td class="td_font"><bean:write name="ops" property="piece"/></td>
<td class="td_font"><bean:write name="ops" property="manHour"/>+<%=collectHour%></td>
</tr>
</logic:iterate>不知道这样可不可以

解决方案 »

  1.   

    <% collectHour+= ops.manHour %>
      

  2.   

    同意 jFresH_MaN(Leave Java For Cpp)
      

  3.   

    1页面上的里面加脚本可以2程序里就得改tag了
      

  4.   

    祝贺祝贺
    <% float collectHour=0; %>
    <logic:iterate id="ops" name="outputs" scope="request">
    <% collectHour+= ops.manHour %>
      

  5.   

    to wangyhlj(开心) :我试过会出错的!
      

  6.   

    不懂标签,不过感觉楼上两个说得挺对阿<% float collectHour=0; %>
    <logic:iterate id="ops" name="outputs" scope="request">
    <% collectHour+= ops.manHour %>你看看你的manHour是什么类型,需要转换一下么
      

  7.   

    我也同意 jFresH_MaN(Leave Java For Cpp)