Bhaarat Sharma wrote:
<s:iterator begin="%{1}" end="%{dataList.size()}" step="%{2}">
</s:iterator>
the above properties dont seem to be there for iterator tag.
2.1.7 (RC, anyway) is due out RSN.
I am doing something like this:
<s:iterator status="stat" value="(secondResultSet.size()/3).{ #this }" >
the contents of stat are defined by:
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html
The contents of the ONGL expression in value determine what's on top of
the stack each time through the loop.
Let's say your list has 24 entries.
(secondResultSet.size()/3) = 8
(8).{#this} is the list (0 1 2 3 4 5 6 7) (double check that, though--it
might be (1 2 3 4 5 6 7 8).)
The funky expression I had earlier started with all the values 0..23 and
trimmed out those I didn't want:
(secondResultSet.size()).{? (#this/3)==(#this%3)}
-Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org