Johannes Becker wrote:
Hi,

I want to increment the value of a variable in a <jx:forEach>-loop. In my
case, I want to increment the variable "total" with the "quantity"-element
(from item).

<jx:set var="total" value="0"/>
<jx:forEach select="#{item}">
        ???     #{total} +=  #{quantity}   ???          
</jx:forEach>

Is there a way to do this? Or a workaround?

See http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html#forEach
(esp begin, step, end attributes).

Never used them, I assume they work.

Upayavira

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to