Parsing the data from the request is all handled for you by Struts. You just get a bunch of java.io.File objects to work with.

L.

C.F. Scheidecker Antunes wrote:

Thanks that's what I thought regarding the form. But what I really want is to know how to separate them when they are uploaded. Files are uploaded like email mime attachments. So there is a begining and end of each file. Therefore, how do you separate them? I image that you would have to create a FormBean to accept n file inputs and then get the content to each one separately and assign them to a stream class. Checking for each input whether it is null or not.

Laurie Harper wrote:

C.F. Scheidecker Antunes wrote:

Is there any way to perform multiple file uploads using Jakarta Commons Upload on a Struts application?
Is there any howto on this issu?



Just use multiple file inputs on the form. There's no way to provide a single 'select multiple files to upload' widget, if that's what you're asking; HTML only provides the single-file form input. But there's nothing to stop you having more than one of them on a page.

L.


--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to