cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giuseppe Di Pierri" <giuseppe.dipie...@gmail.com>
Subject Re: <jx:forEach
Date Wed, 02 May 2007 08:44:34 GMT
Hi Rashel,

On 5/2/07, Rashel Shehata <rashel.s@gmail.com> wrote:
> Hi,
>
> How do i get access to the loop index variable in a jx:forEach Loop?
> I have
>
You need to do something like this:

<jx:forEach var="item" items="${cocoon.session.getAttribute('array')}"
varStatus="status">
 ${status.index}
</jx:forEach>


> I want teh index of the array that is accesed at each loop
>
> many Thanks

bye
pino

-- 
Giuseppe Di Pierri
Managing Director
______________________
Phiware Engineering Sagl
via Ginevra 5
CH-6900 Lugano
Tel. +41 91 260 75 55
Fax.+41 91 260 75 59
Email. giuseppe.dipierri@phiware.ch
--

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message