Use a LazyValidatorForm - define an array of User objects for the form
in your struts-config and it will automatically populate it for you:

<form-bean name="myForm" type="org.apache.struts.validator.LazyValidatorForm">
   <form-property name="users" type="sompackage.User[]" />
</form-bean>

http://struts.apache.org/1.x/userGuide/building_controller.html#lazy_action_form_classes

Niall

On 6/6/07, Raghupathy, Gurumoorthy <[EMAIL PROTECTED]> wrote:
Hi,

            Situation           :           One DynaValidatorForm has a
property of type "java.util.ArrayList" and size is not known in advance

                                                The Arraylist consists
of elements of type "User" which is a simple Javabean and dispayed using
struts:text  indexed="true"

            Question           :           How can I get the collection
back as an ArrayList prepopulated back when i submit the data back ....

                                                I want to know a
solution with the least amount of code ...



            Please note       :           I have done google search for
this and there does nto seems to be an "elegant" way of doing this with
DynaValidatorForm



            Please help

Regards

Guru

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

Reply via email to