Dear All,
Im trying to upload a file using dynamic action forms in
struts , whenever I'm trying to upload the file the following exception is thrown :
SRVE0026E: [
Servlet Error]-[BeanUtils.populate]: org.apache.commons.beanutils.ConversionException: Cannot assign value of type 'java.lang.String' to property 'lbFile' of type 'org.apache.struts.upload.FormFile'
to define the dynaActionForm in the struts config I use the following
string:
<form-bean name="listLBPaymentsForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="bills" type="com.sts.sme.lb.LBPayment[]" />
<form-property name="dynaApplication" type="com.sts.sme.lb.LBApplicationRequest" />
<form-property name="lbFile" type="org.apache.struts.upload.FormFile"/>
</form-bean>
in the
jsp page:
<html:file property="lbFile" title="Upload Authorization" />
So anyone have any idea why struts excpect string rather than FileForm
Regards
Rabee' Nawash