Raghu,

If you want to get one particular element you should be able to do this using 
bean:define and indexed properties.
All you can do with the iterate tag is to skip the first elements and the last ones 
using the offset and length
attributes.

If you want to know the index of the element you are manipuling in the iterate tag, 
you'll need to modify iterate so
that it puts the index in the pageContext.

Jean-Noel

----- Original Message -----
From: raghu tadi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 16, 2001 2:45 PM
Subject: Iterate -- Logic Tag


> <logic:iterate id="myCollectionElement" name="list">
>   Do something with myCollectionElement
> </logic:iterate>
>
> How do i get the Position value of a particular element in say a Vector when
> i use the iterate tag.Sample snippet would be like,
> <pre>
> Vector v has some String elements..
> for(int i =0 ; i < v.size(); i++)
> {
>    out.println(v.elementAt(i));
> }
> </pre>
> Question is: How do i get the i-th element from Vector V when i use the
> Iterate Tag..
>
> Please Respond.
> Thanks,
> Raghu..
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>

Reply via email to