Bhaarat Sharma wrote:
Iterator it = myList.iterator()
while (it.hasNext()) {
SomeClass ob1 = (SomeClass) it.next();
SomeClass ob2 = (SomeClass) it.next();
//do something
}
why can we not achieve the same with s:iterator tag.
What was the reasoning behind not providing a 'next' or something similar?
Because it's a simple iterator, just like Java's for (Type var :
collection) construct or JSTL's forEach tag.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org