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" />

 

你可能感兴趣的:(iterator)