Hi Sandeep,
Try this:
<logic:iterate id="price" name="MyFormBean" property="pricesVector">
<TR>
<TD>
<bean:write name="price" property="oldPrice"/>
</TD>
<TD >
<html:text name="price" property="newPrice" />
</TD>
</TR>
</logic:iterate>
and have getter/setter for pricesVector in your MyFormBean and getter/setters
for oldPrice and newPrice in Price object.
Hope that helps,
Dave
"Sandeep_Yawale/LNTINFOTECH%lntinfotech.com"@interlock.lexmark.com on 07/11/2001
11:08:30 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: David Hay/Lex/Lexmark)
Subject: Updation using iterate tag
Hi All,
I have one form bean namely "MyFormBean".
This bean contain vector (pricesVector) of class type "Price".
The class Price has two attribute "oldPrice" and "newPrice"
I want to display prices vector in such fashion
---------------------------------------------------------------------
oldprice1 (as label) newPrice1 (in text box)
oldprice2 (as label) newPrice2 (in text box)
oldprice2 (as label) newPrice2 (in text box)
---------------------------------------------------------------------
How do I do this using iterate tag, so that any updation in text box should
get updated in the vector (prices)?
I tried using iterate tag but could not get through?
Anybody having solution for this.
best regards,
Sandeep