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
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
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
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
)
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
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
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
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
8 matches
Mail list logo