DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10535>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10535

DynaActionForm, BeanUtils.populate, Unknown property 'multipartRequestHandler'

           Summary: DynaActionForm, BeanUtils.populate, Unknown property
                    'multipartRequestHandler'
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When trying to populate a concrete form class from a DynaAction form, I get 
the following error:

Exception in copying navForm to cpForm: java.lang.NoSuchMethodException: 
Unknown property 'multipartRequestHandler'

<code>
// populate the courseProgress form
CourseProgressForm cpForm = new CourseProgressForm();
DynaActionForm navForm = (DynaActionForm)session.getAttribute
(Constants.NAVIGATION_KEY);

// Copy the navigationForm's properties to the courseProgressForm
try {
    BeanUtils.populate(cpForm, BeanUtils.describe(navForm));
    logCat.debug("populated courseProgressForm: " + cpForm);
} catch (Exception e) {
    logCat.error("Exception in copying navForm to cpForm: " + e);
}
</code>

I know I can write a workaround, but I'm also interested to know if this will 
be possible in the future.

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

Reply via email to