RE: How to upload multiple files??

2003-03-28 Thread Jagadeesan,Sivakumar
OKAY I got it now :)

Thanx a lot for your patience Eva

--Siva Jagadeesan

-Original Message-
From: Eva Sager [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:00 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


Then make the data in the list box be the list from the form...  where all
your FormFiles end up after importing.  When you user removes a Formfile,
you remove it from the list...

-Original Message-
From: Jagadeesan,Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:53 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


Eva:

I am sorry I do not understand

My requirement is this,

The user can enter some of the details about him/her. Then he/she could
upload 0 or more photos.
(I want something like Hotmail attachment screen. Where user could just
browse and add a file. Once he adds a file, he could see the file name in
the list box. He could select a file in the list box, and also remove the
file if he wants. )

Then when they press "Submit" , these files will be uploaded in my server.

My questions:

How do u think using which technology ( Java or JavaScript) I should be
doing these process.

NOTE: This page is one of the pages in a wizard

Rgds,
--Siva Jagadeesan

-Original Message-
From: Eva Sager [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:37 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


I don't have access to the code right now...  but what I did was in my form
object I had a single FormFile which handled each individual upload, then
when they hit the import button I put that Formfile into a list of
FormFiles.  On the gui, I displayed the list of FormFiles and I maintained
the list in my form object.

-Original Message-
From: Jagadeesan,Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:23 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


Thanx Becky and Eva:

I think I will use an interface using Javascript and allow the user to add
or remove a file.
Eva it would be great if you could share your code. 

So in my formBean , I will be havin

public void setFiles(FormFile [ ] formFiles) ;

public FormFile[] getFiles;

rite?

--Siva Jagadeesan

-Original Message-
From: Becky Norum [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:07 PM
To: Struts Users Mailing List
Subject: RE: How to upload multiple files??



> Hi All:
> 
> I have requirement that the user could upload more then one file.
Something
> like attachments in a mail?
> 
> How could I achieve this?
> 
> I know I could use
>   
> 
> to upload a single file.
> 
> I need to extend this for multiple files
> 
> --Siva Jagadeesan

Siva,

You can have multiple file upload fields.
In my application, I have a default of 3.

You can actually write some Javascript to ask the user how many files
to upload and alter the number of file fields on the page based on that.

Have the property "file" be an array --> file[0], file[1], etc.

Becky


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

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

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

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

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

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



RE: How to upload multiple files??

2003-03-28 Thread Eva Sager
Then make the data in the list box be the list from the form...  where all
your FormFiles end up after importing.  When you user removes a Formfile,
you remove it from the list...

-Original Message-
From: Jagadeesan,Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:53 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


Eva:

I am sorry I do not understand

My requirement is this,

The user can enter some of the details about him/her. Then he/she could
upload 0 or more photos.
(I want something like Hotmail attachment screen. Where user could just
browse and add a file. Once he adds a file, he could see the file name in
the list box. He could select a file in the list box, and also remove the
file if he wants. )

Then when they press "Submit" , these files will be uploaded in my server.

My questions:

How do u think using which technology ( Java or JavaScript) I should be
doing these process.

NOTE: This page is one of the pages in a wizard

Rgds,
--Siva Jagadeesan

-Original Message-
From: Eva Sager [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:37 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


I don't have access to the code right now...  but what I did was in my form
object I had a single FormFile which handled each individual upload, then
when they hit the import button I put that Formfile into a list of
FormFiles.  On the gui, I displayed the list of FormFiles and I maintained
the list in my form object.

-Original Message-
From: Jagadeesan,Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:23 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


Thanx Becky and Eva:

I think I will use an interface using Javascript and allow the user to add
or remove a file.
Eva it would be great if you could share your code. 

So in my formBean , I will be havin

public void setFiles(FormFile [ ] formFiles) ;

public FormFile[] getFiles;

rite?

--Siva Jagadeesan

-Original Message-
From: Becky Norum [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:07 PM
To: Struts Users Mailing List
Subject: RE: How to upload multiple files??



> Hi All:
> 
> I have requirement that the user could upload more then one file.
Something
> like attachments in a mail?
> 
> How could I achieve this?
> 
> I know I could use
>   
> 
> to upload a single file.
> 
> I need to extend this for multiple files
> 
> --Siva Jagadeesan

Siva,

You can have multiple file upload fields.
In my application, I have a default of 3.

You can actually write some Javascript to ask the user how many files
to upload and alter the number of file fields on the page based on that.

Have the property "file" be an array --> file[0], file[1], etc.

Becky


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

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

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

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

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



RE: How to upload multiple files??

2003-03-28 Thread Jagadeesan,Sivakumar
Eva:

I am sorry I do not understand

My requirement is this,

The user can enter some of the details about him/her. Then he/she could
upload 0 or more photos.
(I want something like Hotmail attachment screen. Where user could just
browse and add a file. Once he adds a file, he could see the file name in
the list box. He could select a file in the list box, and also remove the
file if he wants. )

Then when they press "Submit" , these files will be uploaded in my server.

My questions:

How do u think using which technology ( Java or JavaScript) I should be
doing these process.

NOTE: This page is one of the pages in a wizard

Rgds,
--Siva Jagadeesan

-Original Message-
From: Eva Sager [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:37 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


I don't have access to the code right now...  but what I did was in my form
object I had a single FormFile which handled each individual upload, then
when they hit the import button I put that Formfile into a list of
FormFiles.  On the gui, I displayed the list of FormFiles and I maintained
the list in my form object.

-Original Message-
From: Jagadeesan,Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:23 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


Thanx Becky and Eva:

I think I will use an interface using Javascript and allow the user to add
or remove a file.
Eva it would be great if you could share your code. 

So in my formBean , I will be havin

public void setFiles(FormFile [ ] formFiles) ;

public FormFile[] getFiles;

rite?

--Siva Jagadeesan

-Original Message-
From: Becky Norum [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:07 PM
To: Struts Users Mailing List
Subject: RE: How to upload multiple files??



> Hi All:
> 
> I have requirement that the user could upload more then one file.
Something
> like attachments in a mail?
> 
> How could I achieve this?
> 
> I know I could use
>   
> 
> to upload a single file.
> 
> I need to extend this for multiple files
> 
> --Siva Jagadeesan

Siva,

You can have multiple file upload fields.
In my application, I have a default of 3.

You can actually write some Javascript to ask the user how many files
to upload and alter the number of file fields on the page based on that.

Have the property "file" be an array --> file[0], file[1], etc.

Becky


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

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

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

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



RE: How to upload multiple files??

2003-03-28 Thread Eva Sager
I don't have access to the code right now...  but what I did was in my form
object I had a single FormFile which handled each individual upload, then
when they hit the import button I put that Formfile into a list of
FormFiles.  On the gui, I displayed the list of FormFiles and I maintained
the list in my form object.

-Original Message-
From: Jagadeesan,Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:23 PM
To: 'Struts Users Mailing List'
Subject: RE: How to upload multiple files??


Thanx Becky and Eva:

I think I will use an interface using Javascript and allow the user to add
or remove a file.
Eva it would be great if you could share your code. 

So in my formBean , I will be havin

public void setFiles(FormFile [ ] formFiles) ;

public FormFile[] getFiles;

rite?

--Siva Jagadeesan

-Original Message-
From: Becky Norum [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:07 PM
To: Struts Users Mailing List
Subject: RE: How to upload multiple files??



> Hi All:
> 
> I have requirement that the user could upload more then one file.
Something
> like attachments in a mail?
> 
> How could I achieve this?
> 
> I know I could use
>   
> 
> to upload a single file.
> 
> I need to extend this for multiple files
> 
> --Siva Jagadeesan

Siva,

You can have multiple file upload fields.
In my application, I have a default of 3.

You can actually write some Javascript to ask the user how many files
to upload and alter the number of file fields on the page based on that.

Have the property "file" be an array --> file[0], file[1], etc.

Becky


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

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

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



RE: How to upload multiple files??

2003-03-28 Thread Jagadeesan,Sivakumar
Thanx Becky and Eva:

I think I will use an interface using Javascript and allow the user to add
or remove a file.
Eva it would be great if you could share your code. 

So in my formBean , I will be havin

public void setFiles(FormFile [ ] formFiles) ;

public FormFile[] getFiles;

rite?

--Siva Jagadeesan

-Original Message-
From: Becky Norum [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 1:07 PM
To: Struts Users Mailing List
Subject: RE: How to upload multiple files??



> Hi All:
> 
> I have requirement that the user could upload more then one file.
Something
> like attachments in a mail?
> 
> How could I achieve this?
> 
> I know I could use
>   
> 
> to upload a single file.
> 
> I need to extend this for multiple files
> 
> --Siva Jagadeesan

Siva,

You can have multiple file upload fields.
In my application, I have a default of 3.

You can actually write some Javascript to ask the user how many files
to upload and alter the number of file fields on the page based on that.

Have the property "file" be an array --> file[0], file[1], etc.

Becky


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

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



RE: How to upload multiple files??

2003-03-28 Thread Becky Norum

> Hi All:
> 
> I have requirement that the user could upload more then one file. Something
> like attachments in a mail?
> 
> How could I achieve this?
> 
> I know I could use
>   
> 
> to upload a single file.
> 
> I need to extend this for multiple files
> 
> --Siva Jagadeesan

Siva,

You can have multiple file upload fields.
In my application, I have a default of 3.

You can actually write some Javascript to ask the user how many files
to upload and alter the number of file fields on the page based on that.

Have the property "file" be an array --> file[0], file[1], etc.

Becky


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



RE: How to upload multiple files??

2003-03-28 Thread Eva Sager
If they can upload the files one at a time, you can use a FormFile[].  That
is what I did...  and I made and interface so that the user can add and
remove files from the array as they wanted.

-Original Message-
From: Jagadeesan,Sivakumar [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 5:20 PM
To: 'Struts Users Mailing List'
Subject: How to upload multiple files??


Hi All:

I have requirement that the user could upload more then one file. Something
like attachments in a mail?

How could I achieve this?

I know I could use
  

to upload a single file.

I need to extend this for multiple files

--Siva Jagadeesan

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

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



How to upload multiple files??

2003-03-27 Thread Jagadeesan,Sivakumar
Hi All:

I have requirement that the user could upload more then one file. Something
like attachments in a mail?

How could I achieve this?

I know I could use
  

to upload a single file.

I need to extend this for multiple files

--Siva Jagadeesan

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