If you are just looping through the list, you don't
need it.  If you want to get the number you are
currently on in the iteration, then you give a
variable name to expose.  So from your example, you
will have a variable itemIdx of type
java.lang.Integer.

David

--- "Mimpin Halim [Lucas]" <[EMAIL PROTECTED]> wrote:
> Hi Jeff and everyone,
> 
> What i mean is, how can we use the indexId attribute
> in the logic:iterate
> tag?
> 
>     <logic:iterate id="reqPageItem"
> type="edu.hawaii.purchasing.ItemBean"
> --->                  indexId="itemIdx"
>                   collection="<%= req.getList() %>">
>       <tr valign="top">
>         <td class="light" height="20"
> align="center"> <html:text
> name="itemBean" property="qty" value="<%=
> reqPageItem.getQtyString() %>"
> size="4"/> </td>
>       </tr>
>     </logic:iterate>
> 
> Thanks,
> 
> Lucas
> 
> 
> >>-----Original Message-----
> >>From: Krueger, Jeff
> [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, July 10, 2001 3:59 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: RE: logic:iterator indexId?
> >>
> >>
> >>Lucas,
> >>
> >>    I'm not 100% sure of what your asking, but maybe
> this will help.
> >>Jeff Krueger
> >>
> >>      <%int i=0;%>
> >>      <strutslogic:iterate id="category"
> >>                      type="com.maint.CategoryBean"
> >>                      name="recordManager"
> >>                      property="currentCategories" >
> >>      <tr>
> >>        <td><input type="text" size="32"
> name="categoryName_<%=i++%>"
> >>value="<jsp:getProperty name="category"
> property="name"/>"/></td>
> >>      </tr>
> >>      </strutslogic:iterate>
> >>
> >>
> >>-----Original Message-----
> >>From: Mimpin Halim [Lucas]
> [mailto:[EMAIL PROTECTED]]
> >>Sent: Tuesday, July 10, 2001 7:42 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: logic:iterator indexId?
> >>
> >>
> >>Hi Everyone,
> >>
> >>Anybody knows how to use the indexId in the
> logic:iterator tag?
> >>Will it give us indexed html form element?
> >>
> >>Please hellpppp...
> >>
> >>Thanks,
> >>
> >>Lucas
> >>
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to