You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by 纪晓曦 <sh...@gmail.com> on 2009/10/09 14:09:04 UTC

upload file problem

When I upload file
I got

ava.lang.IllegalArgumentException: Cannot invoke
mov.plant.form.MovieOperationAddForm.setFile on bean class 'class
mov.plant.form.MovieOperationAddForm' - argument type mismatch - had
objects of type "java.lang.String" but expected signature
"org.apache.struts.upload.FormFile"

	jsp:
<html:file name="MovieOperationAddForm" property="file" value=""/>
form:
private FormFile file;

Is this message means it give a parameter which is a string ? Maybe it is
the path of the file, how can I solve this?