so if there is a need to do something like this ...we are better off using
good ole scritplets? <% %>

On Sat, May 30, 2009 at 12:25 AM, Dave Newton <newton.d...@yahoo.com> wrote:

> 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
>
>

Reply via email to