struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: [S2] Indexed Lists
Date Fri, 12 Sep 2008 14:15:16 GMT
--- On Fri, 9/12/08, Roger wrote:
> <s:iterator ........ >
> </s:iterator>
> <s:if test = "%{count}"/>
> <s:else>
> <s:set name="count" value="0"/>
> </s:else>

How about losing the seemingly-unnecessary count?

<s:set name="count" value="0"/>
<s:iterator ...>
  <s:set name="count" value="count+1"/>
  ...
</s:iterator>

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message