« Return to Thread: adding values to a variable inside iterator tag

adding values to a variable inside iterator tag

by omnipresent :: Rate this Message:

Reply to Author | View in Thread

Hi,
I have a simple iterator tag like the following

<s:iterator value="results">

    <s:property value="value1"/>

</s:iterator>

is there a way to get the total of value1 at the end of this iterator tag?

basically in java we would do totalValue += value1; and then at the end of
the loop we would have total of value1.

Is that possible to do with an iterator tag?

 « Return to Thread: adding values to a variable inside iterator tag