fea jabi wrote the following on 1/4/2006 3:52 PM:
yes, that's right.

have a table in my jsp which used form2.

form1 properties are a row in a table.
Would like to create a list of DynaActionform objects which would be the rows of my table.

Ok, that's what I thought. You only need one Form (not a collection of Form beans) and just use a Collection as a property in your DynActionForm...

<form-property name="productOrders" type="java.util.Collection"/>

Now make sure you put your Collection of productOrders (or whatever objects you need in your List) and you could use that in your form.

ArrayList list = somwhere.getMyListOfRows(); //each row should represent
                                             //an object
yourDynaForm.set("productOrders", list );



--
Rick Reumann
http://www.tech.reumann.net - Struts lessons, articles, etc.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to