You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hugo Questroy <ir...@wanadoo.fr> on 2003/10/09 12:07:27 UTC
Problem with FileUpload
Hello,
Here is my form I've created :
<html:form action="/UploadFile.do" method="post" enctype="multipart/form-data">
<html:file property="file" />
</html:form>
The form I submit conatins a "file" attribute of FileForm type.
I did exatcly as mentionned in different tutorials to upload files with Struts.
But I get the following exception and I can't figure out what's happening:
javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
...
...
...
...
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
...
...
...
Please Help !
I'm using Struts 1.1 by the way
Thank your for your help
Hugo
Re: Problem with FileUpload
Posted by Hugo Questroy <ir...@wanadoo.fr>.
Nobody has a clue ??
----- Original Message -----
From: "Hugo Questroy" <ir...@wanadoo.fr>
To: <st...@jakarta.apache.org>
Sent: Thursday, October 09, 2003 12:07 PM
Subject: Problem with FileUpload
Hello,
Here is my form I've created :
<html:form action="/UploadFile.do" method="post"
enctype="multipart/form-data">
<html:file property="file" />
</html:form>
The form I submit conatins a "file" attribute of FileForm type.
I did exatcly as mentionned in different tutorials to upload files with
Struts.
But I get the following exception and I can't figure out what's happening:
javax.servlet.ServletException: BeanUtils.populate
at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
..
..
..
..
java.lang.IllegalArgumentException: argument type mismatch
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
..
..
..
..
Please Help !
I'm using Struts 1.1 by the way
Thank your for your help
Hugo
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org