s:iterator数据累加示例代码
<s:set var="xs_heji" value="0" /> <s:set var="km_heji" value="0" /> <s:iterator value="pager.list" var="pfsubjectmap"> <tr> <td> ${pfsubjectmap.jsid }</td> <td> ${pfsubjectmap.deskname }</td> <td> ${pfsubjectmap.jsshijian }</td> <td> </td> <td> ${pfsubjectmap.shijixiaoshoujin_e }</td> <td> ${pfsubjectmap.jsfsjin_e }</td> </tr> <s:set var="xs_heji" value="#pfsubjectmap.shijixiaoshoujin_e+#xs_heji" /> <s:set var="km_heji" value="#pfsubjectmap.jsfsjin_e+#km_heji" /> </s:iterator> <s:property value="#km_heji" />