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