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?