Thanks , it did the trick for me.
>>> [EMAIL PROTECTED] 06/11/03 09:00AM >>> try.. <html:text name="addRateForm" property="<%=\"firstName[\"+i+\"]\"%>"/> This way you dont need to create strings.. BTW, are u using struts 1.0? Because with 1.1, you can directly use nested tags.. -----Original Message----- From: Sashi Ravipati [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 2:56 PM To: [EMAIL PROTECTED] Subject: RE: Error Message: Invalid indexed property I tried that it works , but I have many HTML elements like that and I would like to use <html:text name="addRateForm" property="firstName[<%=j%>]"/> so that I dont have to create different String objects. Thanks >>> [EMAIL PROTECTED] 06/11/03 08:57AM >>> try like this <% String fname="firstName["+j+"]";%> > <td><html:text name="addRateForm" property="<%=fname%>"/><td> i didnt check it.pardon me if it doesn't work Partha > ---------- > From: Sashi Ravipati[SMTP:[EMAIL PROTECTED] > Reply To: Struts Users Mailing List > Sent: Wednesday, June 11, 2003 5:48 PM > To: [EMAIL PROTECTED] > Subject: Error Message: Invalid indexed property > > Hi > > I am using logic:iterate tag as shown below > > <logic:iterate id="element" name="addRateForm" property="firstName" > indexId="i" > > <tr> > <% int j = ((Integer) > pageContext.getAttribute("i")).intValue(); %> > <td><html:text name="addRateForm" > property="firstName[<%=j%>]"/><td> > > </tr> > </logic:iterate> > > Error Message: Invalid indexed property 'firstName[]' > > I did print the vlaues of "j" and they are fine. > > > What am i doing wrong in the above expression. > > Thanks > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]