struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Hill" <andrew.david.h...@gridnode.com>
Subject RE: how to dynamically generate several file upload fields
Date Wed, 11 Dec 2002 11:50:43 GMT
Wow. That was quick. I spent ages when I did it.
Good work :-)

-----Original Message-----
From: matthew yee-king [mailto:yeeking@no-future.com]
Sent: Wednesday, December 11, 2002 19:43
To: Struts Users Mailing List
Subject: Re: how to dynamically generate several file upload fields


I've got this working nicely now. And its not a /total/ HCI disaster by
any means :).

cheers

- matthew


On Wed, 11 Dec 2002 10:10:17 +0000
matthew yee-king <yeeking@no-future.com> wrote:

>
> > Another idea you might try is similar to what I ended up doing. This
> > involves having a single file input field. The user can only upload
> > one file at a time, but after each upload they are brought back to
> > the form to add more. This is implemented by having the form in
> > session scope and the setFile() method (or whatever you call your
> > file field) adds each FormFile that is set into it to a list. The
> > advantage of this method is that it allows for any number of files ,
> > but has several disadvantages too - such as needing to use the
> > session scope, and it feels (very) clunky to the user.
> >
>
> that sounds like the best solution to me for the moment. I need a
> quick solution as ever ;)
>

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message