hi,
how can i initialize a property of type ArrayList in a DynaValidatorForm?
i saw that i can do some simple initialization with the initial
attribute in the form-peoperty tag in struts-config.

at the moment i do some initialization in a prepare action that sets the
attributes some combo boxes.

<action path="/prepareBuyOnline"
                type="software.BuyOnlineAction"
                parameter="prepareForm">
            <forward name="success" path="/BuyOnline.jsp"/>

it seems that a form of type DynaValidatorFrom doesn´t allow the
attribute name="formName" in the prepare action statement. do i need
this attribute to access the form bean?
i always get a ForwardConfig exception when i try to do this but i need
to initialize a form property (ArrayList) in the action statement. i
think i need an instance of the form bean to set a property with
PropertyUtils.setSimpleProperty(yourForm,"propertyName",object);
in a action method. is that right?

which data types can i use in a DynaValidatorForm? i have a book here
and the author says that only arrays, lists and maps of primitive data
types are allowed. is it possible to use a java.util.ArrayList with my
own beans of same type as elements?
thank you

regards
philippe

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

Reply via email to