i have extended DynaValidatorForm and created form bean that holds a List. It looks like this :
<form-beans> <form-bean name="myForm" type="com.test.MyDynaValidatorForm"> <form-property name="beans" type="java.util.List"/> </form-bean> </form-beans> beans is a List of type Bean .... which has only two variables name , age .... and the getter/setters for these two variables. I am using lazy list to populate this List. The business requirement is that the user wants to be able to dynamically add Beans(which represent a <tr> with two text boxes) from the html page. I have already implemented that using row cloning using javascript. But i have hardcoded one row on the page already......which looks like this .... <tr> <td><input type=text name=beans[0].name></td><td><input type=text name=beans[0].age></td> </tr> .... now the user can add more rows and i would rename the next row to .... <tr> <td><input type=text name=beans[1].name></td><td><input type=text name=beans[1].age></td> </tr> ...... This way i can succesfully pass all rows to the action class......but i would get stuck if there are already Beans in the database , in that case i would have to render those beans as rows having indexed names. What i am looking for is a way to the following : 1.)Use nested tag to render the html elements with my naming convention ex. beans[0].name...etc 2.)If possible initialize my "myForm" to have a List of size 1 , so that i dont have hardcode the initial <tr>. Also if there are any Beans in the database...then i could replace the List of size 1 with the new one. Hope i was clear enough....please help --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]