title: how to increment a variable insidet s:iterator tag
body: <p>I have an s:iterator tag like the following</p>
  
  <pre><code>&lt;s:iterator value="results"&gt;
      &lt;s:property value="someIntValue"/&gt;
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>At the end of this loop i want the total of someIntValue. In plain java I would do something like this</p>
  
  <pre><code>variable += someIntValue
  </code></pre>
  
  <p>but can this be done inside the struts2 tag?  I looked at documentation for <a href="http://struts.apache.org/2.0.14/docs/set.html" rel="nofollow noreferrer">s:set</a> tag but was not able to figure out how to achieve this. </p>