Of top of my head:
Are you using a version of upload commons  that came with Struts or...? 

Also, you got some code <snippet/> for clues?

--Alen


----- Original Message ----- 
From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 2:44 PM
Subject: RE: using html:file and commons-fileupload


> Hi,
> changing the type to FormFile didn't solve the problem. Any other ideas?
> 
> 
> > -----Original Message-----
> > From: Alen Ribic [mailto:[EMAIL PROTECTED]
> > Sent: Monday, August 04, 2003 2:28 PM
> > To: Struts Users Mailing List
> > Subject: Re: using html:file and commons-fileupload
> > 
> > 
> > 
> > ----- Original Message -----
> > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailinglist" <[EMAIL PROTECTED]>
> > Sent: Monday, August 04, 2003 2:24 PM
> > Subject: using html:file and commons-fileupload
> > 
> > 
> > > Hi,
> > > i have the following problem. I use a <html:file> element to 
> > choose a file
> > > and want it to be uploaded using commons-fileupload.
> > > When i submit my form i get the following exception:
> > >
> > > java.lang.NoSuchMethodError:
> > > org.apache.commons.fileupload.FileUpload.setSizeMax(I)V
> > >
> > > my code looks something like
> > >
> > > <html:form action="/myactions/blabla" method="post"
> > > enctype="multipart/form-data">
> > > <html:file property="myFile"/>
> > > </html:form>
> > >
> > 
> > > By the way: which datatype does the property have to be of?
> > 
> > As far as I can remember it should be of type:
> > org.apache.struts.upload.FormFile.
> > 
> > > My Action is not even called -> the exception comes before the
> > excute-Method
> > > is called
> > >
> > > Help please.
> > >
> > > Filip
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to