Dale Newfield wrote:
<s:iterator value="%{(dataList.size()).{?(#this%2)==(#this/2)}}" >
Heeheehee. That makes me feel all warm and fuzzy inside. I love abusing
OGNL, although at my current gig I'm banned :/
<s:iterator value="%{datalist}" status="iterStatus">
<s:if test="#rowstatus.odd == true">
...
</s:if>
<s:else>
...
</s:else>
</s:iterator>
That was my pseudo-code solution, but it got shot down :'(
<s:iterator begin="%{1}" end="%{dataList.size()}" step="%{2}">
Oh, right! I wish I could remember they're there.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]