Oh, I see, thnx! But I have no idea how to use it;
indexId is "The name of a page scope JSP bean that will contain the
current index of the collection on each iteration."
- How to use it? What is the property of the page scope bean? Do I have
to write that bean first?

<logic:iterate id="myVector" name="someBean" property="list"
indexId="nameOfTheBean">
<bean:write name="myVector" property="price"/>
<bean:write name="nameOfTheBean" property="??????????????"/>
</logic:iterate>

Hartmut  

suhas schrieb:
> 
> check iterate tag in recent struts buidl - supports "indexid" as an
> attribute .
> 
> Suhas
> 
> ----- Original Message -----
> From: Hartmut Bernecker <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 30, 2001 2:48 PM
> Subject: how to get the position when iterating over a vector?
> 
> > Hi,
> >
> > who knows how I can get the position of an object in a vector when
> > iterating about that vector?
> >
> > <logic:iterate id="myVector" name="someBean" property="list">
> > <bean:write name="myVector" property="price"/>
> > </logic:iterate>
> >
> > (I want to have the position as parameter of a link in each row).
> >
> > TIA!
> > Hartmut

Reply via email to