On Tuesday, July 16, 2002, 9:04:04 PM, Craig R. McClanahan wrote: CRM> Setting stuff like this up in the reset() method is the standard approach. CRM> Arrays have to exist already for either standard JavaBean-based CRM> ActionForms, as well as DynaActionForms.
I'm still a bit confused by this. When I use a standard ActionForm I don't have to do anything special with my ArrayList in the ActionForm. A page that uses this ArrayList works fine. However as soon as I try to use this ArrayList as property in a DynaActionForm I run into problems trying to submit a jsp page that was populated with the ArrayList info (the display works fine, it's just upon submission). CRM> In recent nightly builds, we added support for an additional mechanism -- CRM> you can declare an intiialization expression for arrays in the CRM> <form-property> for a DynaActionForm bean, using the "initial" attribute. CRM> The syntax is basically like what you use in Java to initialize an array CRM> to a set of values in a variable declaration -- for example: CRM> <form-bean name="myform" CRM> type="org.apache.struts.action.DynaActionForm"> CRM> <form-property name="intArray" type="int[]" CRM> initial="{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }"/> CRM> </form-bean> What if the information in an ArrayList of beans that you want in a DynaActionForm is to first be populated by some database info. Do you need to first initialize it like a above to a bunch of nulls? If so what if the list size fluctuates (hence use of ArrayList) how do you know how many to initialize the ArrayList with? Thanks for any more thoughts. -- Rick mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>