RE: Re: Multiple File Upload using Struts (number of files dynamic)

2006-02-15 Thread kalpesh modi
I suggest you declare file list as List type. Keep the form in the session. When you click on the Add button, you increase the size of the List by one and display to the user with one extra empty browse . HTH. - Relax. Yahoo! Mail virus scanning

RE: Re: Multiple File Upload using Struts (number of files dynamic)

2006-02-15 Thread George.Dinwiddie
The way I do it is skip using the form for the files and retrieve them from the request. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of shubu > Sent: Tuesday, February 14, 2006 9:23 AM > To: user@struts.apache.org > Subject: Re: Multiple File Uplo

Re: Multiple File Upload using Struts (number of files dynamic)

2006-02-14 Thread shubu
Prasad, Kamakshya capitalservicing.co.jp> writes: > > Hi, > > In the form bean keep an array list of FormFile and use it similarly as > dynamic list control. > > KP > > -Original Message- > From: Viral_Thakkar [mailto:Viral_Thakkar infosys.com] > Sent: Thursday, July 08, 2004 3:01

Re: multiple file upload iteration

2005-08-17 Thread Gordon Hu
OMG... That's it. So sorry for posting a dumb question :-) On 8/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I think maybe you are executing "en.nextElement()" twice..? Once for your > logging and once inside your try block..? > > Gordon Hu <[EMAIL PROTECTED]> wrote on 08/17/2005 10

Re: multiple file upload iteration

2005-08-17 Thread GRamani
I think maybe you are executing "en.nextElement()" twice..? Once for your logging and once inside your try block..? Gordon Hu <[EMAIL PROTECTED]> wrote on 08/17/2005 10:54:22 AM: > for (Enumeration en = fileCounter.elements(); en.hasMoreElements(); ) { > System.out.println("In action " + en.next

Re: Multiple file upload

2005-08-16 Thread Laurie Harper
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. Fil

Re: Multiple file upload

2005-08-16 Thread C.F. Scheidecker Antunes
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

Re: Multiple file upload

2005-08-16 Thread Laurie Harper
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 t

RE: Multiple File Upload using Struts (number of files dynamic)

2004-07-09 Thread Prasad, Kamakshya
ssion KP -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 6:11 PM To: Struts Users Mailing List Subject: RE: Multiple File Upload using Struts (number of files dynamic) Can we add the attribute to the form bean class at runtime... if th

RE: Multiple File Upload using Struts (number of files dynamic)

2004-07-09 Thread Viral_Thakkar
) Sent: Friday, July 09, 2004 9:19 AM To: Struts Users Mailing List Cc: Ketan_Bhat Subject: RE: Multiple File Upload using Struts (number of files dynamic) HI, Try this one... Put it in your form bean private ArrayList formFiles = new ArrayList(); public void setTestFile(int iIndex, FormFile

RE: Multiple File Upload using Struts (number of files dynamic)

2004-07-08 Thread Prasad, Kamakshya
sday, July 08, 2004 5:40 PM To: Struts Users Mailing List Cc: Ketan_Bhat Subject: RE: Multiple File Upload using Struts (number of files dynamic) Thanks KP Could you please elaborate on this.. What I understood is that have an ArrayList of FormFile in the form bean class... now query is how this a

RE: Multiple File Upload using Struts (number of files dynamic)

2004-07-08 Thread Viral_Thakkar
control. Could you please provide code snippet of reference? Regards, Viral -Original Message- From: kamakshya_mishra(int) Sent: Thursday, July 08, 2004 12:01 PM To: Struts Users Mailing List Cc: Ketan_Bhat Subject: RE: Multiple File Upload using Struts (number of files dynamic) Hi, In the

RE: Multiple File Upload using Struts (number of files dynamic)

2004-07-07 Thread Prasad, Kamakshya
Hi, In the form bean keep an array list of FormFile and use it similarly as dynamic list control. KP -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 3:01 PM To: Struts Users Mailing List Cc: Ketan_Bhat Subject: Multiple File Upload using St