struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Polsakiewicz" <Filip.Polsakiew...@innoface.de>
Subject RE: using html:file and commons-fileupload
Date Mon, 04 Aug 2003 14:22:10 GMT
Does the Action which handles the form have to extends some specific class?

> -----Original Message-----
> From: message message [mailto:message559@hotmail.com]
> Sent: Monday, August 04, 2003 3:38 PM
> To: struts-user@jakarta.apache.org
> Subject: RE: using html:file and commons-fileupload
>
>
>
> Here is a copy of the code from the struts-upload example (upload.jsp)
> <html:form action="upload.do?queryParam=Successful"
> enctype="multipart/form-data">
> It works with out any errors.
>
> >From: "Filip Polsakiewicz" <Filip.Polsakiewicz@innoface.de>
> >Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> >To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> >Subject: RE: using html:file and commons-fileupload
> >Date: Mon, 4 Aug 2003 15:15:14 +0200
> >
> >I use commons-fileupload-1.0.jar
> >
> >here the html:code
> >
> >         <html:form action="/core/contact/imageSelect" method="POST"
> >enctype="multipart/form-data">
> >             <html:file property="file"/>
> >             <html:submit>submit</html:submit>
> >         </html:form>
> >
> > > -----Original Message-----
> > > From: Alen Ribic [mailto:alenr@mweb.co.za]
> > > Sent: Monday, August 04, 2003 3:09 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: using html:file and commons-fileupload
> > >
> > >
> > > 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" <Filip.Polsakiewicz@innoface.de>
> > > To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > > 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:alenr@mweb.co.za]
> > > > > 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" <Filip.Polsakiewicz@innoface.de>
> > > > > To: "Struts Users Mailinglist" <struts-user@jakarta.apache.org>
> > > > > 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:
> struts-user-unsubscribe@jakarta.apache.org
> > > > > > For additional commands, e-mail:
> >struts-user-help@jakarta.apache.org
> > > > > >
> > > > >
> > > > >
> > > > >
> >---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> > > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


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


Mime
View raw message