struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schachter, Michael" <>
Subject RE: Volunteer: Multipart Requests
Date Thu, 12 Oct 2000 01:25:41 GMT
 When you create a struts form, you typically create an implementation of
ActionForm and specify setters and getters for the text elements within the
form. For forms with an enctype of "multipart/form-data" this doesn't work.
Setters don't work, and obtaining files has to be done through a specialized

With this addition, you can specify the setters and getters for your text
elements in a multipart form, as well as setters and getters of type
"org.apache.struts.upload.FormFile" to retrieve file data, making the
multipart request handling transparent to the struts developer (I *think*
"transparent" is the right word here..)

-----Original Message-----
Sent: 10/11/00 7:22 PM
Subject: Re: Volunteer: Multipart Requests

When the container itself already supports multipart forms (as does
1.2), how will this work? I don't understand how the two implementaions 
would interact (or at least fail to conflict!).


Martin Cooper
Tumbleweed Communications

At 02:17 PM 10/11/00 -0400, Schachter, Michael wrote:

>Last week I volunteered for creating a mechanism for handling multipart
>forms.  Attached is a zip file with the changes necessary to be made to
>allow for this.  Please view "FileUpload_changeLog.txt" inside the
>for more information on how to implement this.
>Basically what I've done is created a few interfaces and changed/added
>internal BeanUtils and ActionServlet/Mapping code to allow for
>multipart form handling on the struts developer side.  It's also pretty
>configurable and flexible enough that anyone can create their own
>MultipartRequestHandler and plug it into struts through web.xml or
>action.xml.  It also allows for separate MultipartRequestHandler's for
>action specified in action.xml.

View raw message