I have a JSP that contains a table of customers for example.

        Through the business Tier I have retrieved an object Customers that
is a Collection
        of Customer object.

        I have defined a DynValidatorForm:

        <form-bean name="customersForm" dynamic="true"
type="org.apache.struts.validator.DynaValidatorForm">
            <form-property name="id" type="java.lang.String[]"/>
            <form-property name="name" type="java.lang.String[]"/>
            <form-property name="country" type="java.lang.String[]"/>
            <form-property name="select" type="java.lang.String[]"/>
         </form-bean>

        To populate the form from the business data can I do directly:
        BeanUtilities.copyProperties(customersForm, Customers);

        To populate the business data from the form can I do directly:
        BeanUtilities.copyProperties(Customers, customersForm);

        These two lines imply that the form and the business data have
exactly the same
        properties, isn't it ?

        The information about the last column (select or not) is saved in
the 
        HttpSession how must I do to update this property ?

        Is it possible that a form is the combination of multiple Business
data collections ?
        how to make in this case ?
        Must one define two different forms ? and use the two forms in the
same JSP ? 
        I found only one example that uses BeanUtilities.copyProperties
(http://drdb.fsa.ulaval.ca/sujets/struts/membership03/index.html)
        but this example doesn't display any collection only one record. If
someone has an other example I am
        very very interested.
        Thanks a lot in advance 

        

----------------------------------------------------------- 
As of February 12, 2003 Thomson unifies its email addresses on a worldwide
basis.Please note my new email address: [EMAIL PROTECTED] 

Thomson is the leader in solutions and technologies for the entertainment
and media industries and serves its customers under its four strategic
brands: Technicolor, Grass Valley, RCA and THOMSON. 
More about Thomson: http://www.thomson.net/videochain 


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

Reply via email to