<% int i = 0; %>
    <logic:iterate id="list" name="adminUpdateProfileForm" property="customerContacts">
       <tr> <% i++ ; %>
        <td><html:text property="customerContact[i].contactName"/></td>
       </tr>
    </logic:iterate>
 
 
-----Original Message-----
From: Jeff Trent [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 3:58 PM
To: [EMAIL PROTECTED]
Subject: Indexed Grid Representation on a Form

I think this should work (but obviously it doesn't).  Can anyone tell me why?
 
    <% int i = 0; %>
    <logic:iterate id="list" name="adminUpdateProfileForm" property="customerContacts">
       <tr>
        <td><html:text property="customerContact[<%=i++%>].contactName"/></td>
       </tr>
    </logic:iterate>
 
Where getCustomerContacts() returns a vector of CustomerContact objects &
    getCustomerConact(int offset) returns an CustomerContact element from that vector.
 
thanks,
jeff
 

Reply via email to