Internally to Struts, multipart handling is provided through an interface,
MultipartRequestHandler. In Struts 1.0, the only supplied implementation of
this interface is DiskMultipartRequestHandler, which, as you might expect,
writes "file" parts to disk as it encounters them.

Struts does allow you to configure the multipart handler to use, by
specifying the class name in the multipartClass init-param for your web app.
This allows you to provide your own implementation if you want to (although
this is no small task).

--
Martin Cooper


----- Original Message -----
From: "Jonathan Asbell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 09, 2001 6:39 AM
Subject: uploading file requires immediate serialization location?


Hello all.
I am just trying to understand an aspect of a multipart request.  When
you submit after using an input of type "file", do you have to provide
an immediate location for the file to be serialized to, or can you store
it in a java object (in a bean's field) as a binary object until you are
ready to serialize it.  The reason is that I want to hold a jpeg in a
bean until the person completes the last page of the form, and THEN
serialize it.




Reply via email to