ㄓㄤㄑㄧㄤ

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>&nbsp;${pfsubjectmap.jsid }</td> 
<td>&nbsp;${pfsubjectmap.deskname }</td> 
<td>&nbsp;${pfsubjectmap.jsshijian }</td> 
<td>&nbsp;</td> 
<td>&nbsp;${pfsubjectmap.shijixiaoshoujin_e }</td> 
<td>&nbsp;${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" />

 

posted @ 2015-06-01 11:12  ㄓㄤㄑㄧㄤ  阅读(947)  评论(0编辑  收藏  举报
哈哈,页脚部分。