Duh,
I did not realize there as an indexId property on the logic:iterator tag
which indicates the current iteration. By using this in conjunction with
the logic:equal tag it is quite easy.
logic:iterator id=myCollection name=myBean
property=myArrayList indexId=i
!-- first time through the loop --
logic:equal name=i value=0
td
html:link page=/do/myAction name=myBean
property=keyParams
bean:write name=columns /
/html:link
/td
/logic:equal
!-- all other times through the loop --
logic:notEqual name=i value=0
tdbean:write name=columns //td
/logic:notEqual
/logic:iterator
Sorry for the wasted bandwidth.
Todd
-Original Message-
From: Todd G. Nist [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 20, 2001 11:56 AM
To: [EMAIL PROTECTED]
Subject: logic:iterator - how to determine if this is the first time
through an iteration
Hello,
Is there a way when iterating through a collection to determine if this is
the first time through the iteration when using the logic:iterator tag?
Thanks in advance,
Todd G. Nist
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]