<s:set var="count" value="0" />
<s:iterator value="#request.shopCars" var="shopCar">
<s:set var="count" value="#count+cost" />
</s:iterator>
合计:<s:property value="#count"/>
转载于:https://www.cnblogs.com/qingmaple/p/4253378.html
<s:set var="count" value="0" />
<s:iterator value="#request.shopCars" var="shopCar">
<s:set var="count" value="#count+cost" />
</s:iterator>
合计:<s:property value="#count"/>
转载于:https://www.cnblogs.com/qingmaple/p/4253378.html