Hello Martin.  So is it POSSIBLE to save binary data in a bean?  What does
struts do?  These are my real questions.  If I have a form which besides
fields, has an uploaded file, how does the bean actually handle the file?
Is there a conceptual step by step you can give me.  How does the ActionForm
save (and validate) the binary data sent via input type "file".


----- Original Message -----
From: "Martin Cooper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Jonathan Asbell" <[EMAIL PROTECTED]>
Sent: Saturday, June 09, 2001 10:55 PM
Subject: Re: uploading file requires immediate serialization location?


> 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