I based a multi record form on an array of beans:

    <form-bean name="Wa_Reports_DetailsBean" 
type="org.apache.struts.action.DynaActionForm">
      <form-property name="Rows" 
type="view.struts.forms.Wa_Reports_DetailsBean[]" />
      <!-- size="31" -->
    </form-bean>

I can populate the array (set it up) for both ADD and EDIT mode, however, when 
I click save, none of the request parameters are written into the bean.  The 
properties (as they exist in RequestUtils.ppulate) are correct.  I traced the 
code through many levels and find that it is dying here in PropertyUtilsBean:

        // Handle DynaBean instances specially
        if (bean instanceof DynaBean) {
            DynaProperty descriptor =
                    ((DynaBean) bean).getDynaClass().getDynaProperty(name); 
<=====
            if (descriptor == null) {
                throw new NoSuchMethodException("Unknown property '" +
                        name + "'");
            }
            return (((DynaBean) bean).get(name, index));
        }

I did not trace any further than this.  Am I doing this all wrong?  

I'm basing this on the article by James Turner here:

Succeeding With Struts: Indexed Properties and Beans as Properties By James M. 
Turner
http://www.developer.com/java/ejb/article.php/2233591

I'd really appreciate any help on this one - I've been banging my head against 
the wall.

Eric Givler
Application Developer
Department of Environmental Protection/BIT

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

Reply via email to