In my jsp i have a html:file
like this, and in the form i have the getter and setter. but when running i got
Caused by: java.lang.IllegalArgumentException: Cannot invoke com.app.app.struts.forms.MyForm.setDocfile on bean class 'class com.app.app.struts.forms.MyForm'
- argument type mismatch - had objects of type "java.lang.String" but expected signature "org.apache.struts.upload.FormFile"
jsp:
<html:file property="docfile" styleId="docfile" size="45" ></html:file>
getting the error only when submitting the page and i'm not uploading anything. (the upload field is not a required filed .)
multipart/form-data
whenever you have an <input type="file"> so i think its not only in struts, – Silky