Do u have setter methods in the Product class like - setQuantity(int qty)
???
Also U need to have indexed iterate tag written by Dave Hey . So u can use
<html:text name="product" property="quantity" size="3" index= "true"/>
Here is the ActionForm
public Product [ ] getProductList( ) {
return this.productList;
}
public setProductList(Product [ ] productList) {
this.productList = productList ;
}
public Product getProductList(int index) {
return (Product)productList[index];
}
Remember have proper setter methods in the Product class like setQuantity
int qty )
Suahs
----- Original Message -----
From: Vaibhav Patil <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 1:02 PM
Subject: Iterate tag update
> Hi,
> I am using logic:iterate tag as follows to print a table with text
> boxes.
>
> <logic:iterate id="product" name="productSearchForm"
> property="productList">
> <tr>
> <td align="left">
> <bean:write name="product" property="productNumber"
> filter="true"/>
> </td>
> <td align="center">
> <html:text name="product" property="quantity" size="3"/>
> </td>
> </tr>
> </logic:iterate>
>
> I have a array of objets(Product) in productList. When I update the
quantity
> and submit the page, it does not update the information into the
> productList.
> What might be the problem???
>
> Vaibhav