struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hubert Rabago <hrab...@gmail.com>
Subject Re: Upload File
Date Thu, 17 Mar 2005 15:10:51 GMT
I'm certainly not an upload expert, but I have succeeded in uploading
files before by following the struts sample upload application.  You
can find this among the sample webapps included in the struts binary
distribution.  Check out the code in that sample app, including how
the form was declared and how the action processed the file being
uploaded.

Hubert


On Thu, 17 Mar 2005 11:53:48 -0300, Flávio Maldonado
<fvmaldonado@yahoo.com.br> wrote:
> Hi all!
> 
> I'm having a problem to Upload File...
> 
> This is my JSP
> 
> <html:form action="/upload">
> <html:file name="vibraconForm" property="upFile" />
>  <html:submit property="action">Ok</html:submit>
> </html:form>
> 
> I choose a file and when I click in Ok button, show this errors message:
> 
> exception
> 
> javax.servlet.ServletException: BeanUtils.populate
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1099)
> 
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
> ava:798)
> 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> root cause
> 
> java.lang.IllegalArgumentException: argument type mismatch
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> java.lang.reflect.Method.invoke(Method.java:324)
> 
> org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUtils.j
> ava:1789)
> 
> org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUtils.j
> ava:1684)
> 
> org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.java:17
> 13)
> org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:924)
> org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1097)
> 
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
> ava:798)
> 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 
> note The full stack trace of the root cause is available in the Apache
> Tomcat/5.0.28 logs.
> 
> What's going on? Somebody can helps me?
> 
> Thanks...
> 
> Atc.
> 
> Flávio Vilasboas Maldonado
> Diretor de Desenvolvimento
> SedNet Soluções em TI
> +55 (35) 3471-9381
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message