<% 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>不知道这样可不可以
<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>不知道这样可不可以
解决方案 »
- 初次使用mysql写的,没学过mysql和sqlserver2008的区别,忘大手说说sql语句哪里错了
- json-lib包来用json转换hibernate持久化对象集合问题
- 求jQuery的视频和书
- jboss-4.2.2.GA下userTransaction获取问题
- 求教XML改变ENCODING
- strut, spring, hibernate 为什么叫J2EE FRAMEWORKS
- 请问log4j中string如何转换成level在线急等
- java连接sqlServer数据库出错
- 在ejb的cmp中,如果不提交,此数据在内存吗?在线等
- 有一个中文网站,好像叫社么“蓝色天空”的,专门讲eclipse开发struts的,我忘了网址!有没有哪位朋友知道告诉我一下呀
- 各位java大哥,关于读取XML文件,怎么做啊?
- 在struts中如何用循环输出年份(比如从1900 - 2500)的下拉选项卡
<% float collectHour=0; %>
<logic:iterate id="ops" name="outputs" scope="request">
<% collectHour+= ops.manHour %>
<logic:iterate id="ops" name="outputs" scope="request">
<% collectHour+= ops.manHour %>你看看你的manHour是什么类型,需要转换一下么