commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Vasquez" <>
Subject RE: DiskFileUpload.parseRequest returns no items
Date Tue, 05 Oct 2004 15:14:15 GMT
I was pretty happy using struts upload until we moved the application to
a tomcat cluster. If the form is session-scoped and contains a FormFile,
the cluster encounters problems serializing it (an underlying class is
not serializable), so session replication will fail and the application

That's how I got to commons fileupload, to avoid placing the uploaded
file into anything that's session-scoped. Now at least I know that I
can't go that way :-\

Thank you.

-----Original Message-----
From: Martin Cooper [] 
Sent: Monday, October 04, 2004 10:38 PM
To: Jakarta Commons Users List
Subject: Re: DiskFileUpload.parseRequest returns no items

File upload is already supported by Struts, so you don't have to worry
about how to use Commons FileUpload yourself. If you try to do so, the
result you are seeing is to be expected, since Struts has already
parsed the request, and it is no longer available for your code to
also parse.

For information on how to use the file upload capabilities in Struts,

Martin Cooper

On Mon, 4 Oct 2004 10:04:16 -0400, Ivan Vasquez <>
> I'm trying to use commons.fileupload from struts to avoid having
> uploaded files be part of the session.
> Following the simplest example I attempt to parsePequest but it does
> return any items. I verified the request and it does contains what I'm
> expecting. The form's enctype is multipart/form-data. I'm using the
> current release, 1.0.
> Thanks in advance.
> Ivan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message