Re: AW: AW: AW: Multi-select file chooser

2005-03-01 Thread Dakota Jack
You can do this.  There are many ways.  They all use subterfuge,
however, and facades.


On Mon, 28 Feb 2005 18:49:34 -0500, Frank W. Zammetti
[EMAIL PROTECTED] wrote:
 Ah, your right... I misunderstood the OP... I wasn't thinking like a
 multi-select drop-down.  I would agree there is probably no way to do
 that with standard browser functionality.  You'd have to get into
 applets or ActiveX controls, or something along those lines.
 
 But... If you took the form approach like I've shown, there's nothing to
 stop you from dynamically adding elements to the form as more files are
 selected.  However, they user would have to select a file, click Add (or
 something like that), then do that again until they were done.  If
 *that* would fulfill the requirements of the OP, I think that could be done.
 
 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 
 Günther Wieser wrote:
  for sure there is no doubt on my side ;-) this is exactly what i meant if
  you keep the number of files constant.
  but as the originator of this thread alreay said: he looks for a solution of
  multiple file SELECTION. beside the applet i have no idea how to solve
  that
 
  -Ursprüngliche Nachricht-
  Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
  Gesendet: Dienstag, 01. März 2005 00:42
  An: Günther Wieser
  Cc: 'Struts Users Mailing List'
  Betreff: Re: AW: AW: Multi-select file chooser
 
  Just in case there was any doubt, here's the form from my web hosts'
  file manager I was referring to:
 
  form action=doupload.html method=POST ENCTYPE=multipart/form-data
  target=infofr
 input type=file name=file1
 input type=file name=file2
 input type=file name=file3
 input type=file name=file4
 input type=file name=file5
 input type=file name=file6
 input type=file name=file7
 input type=file name=file8
 input type=file name=file9
 input type=file name=file10
 input type=file name=file11
 input type=file name=file12
  br
 Overwrite existing files:
 input type=checkbox name=overwrite value=1
 br
 input type=submit value=Upload
  /form
 
  I could think of some better ways to do present the UI, but that's the basic
  idea.  Heck, throw that in a .tag file and your all set (in a basic way).
 
  --
  Frank W. Zammetti
  Founder and Chief Software Architect
  Omnytex Technologies
  http://www.omnytex.com
 
 
  Günther Wieser wrote:
 
 another solution would be to use (signed) java applets, which is (for the
 enduser) the best looking solution, but the effort to do so is REALLY BIG,
 so if you don't get paid like mad forget it
 
 
 -Ursprüngliche Nachricht-
 Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 01. März 2005 00:29
 An: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Betreff: Re: AW: Multi-select file chooser
 
 You can have as many file elements in a form as you want, and you can
 process them all at once.  My web host (LunarPages) has a decent file
 manager, one of the functions it has is the ability to upload up to 12
 
  files
 
 at a time.
 
 I don't know of any single tag to render such a form, but that's really
 
  what
 
 you need, and it should be trivial to write (although I'd bet it exists
 somewhere).  It's the server-side processing that *could* be tricky
 (although I think Commons Upload would deal with it just fine, probably
 
  give
 
 you a collection or something, I forget what the interface looks like.)
 
 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 
 Günther Wieser wrote:
 
 
 this is standard browser behaviour, haven't seen any browser who would
 allow you to select more than one file.
 reason for that is that your form only includes one form field of type
 file, so how can the browser add more than one file in a way that your
 app understands this?
 
 the only chance for multiple file selection is to ask the user before
 generation of the form how many files do you want to upload, or by
 adding another file field to the form as soon as the user selects one
 (using javascript; but this is quite ugly and can make a lot of
 troubles with different browser or javascript-disabled ones...) or
 he/she upload a zip file...
 
 if there is someone outside who knows a better solution, let us know,
 this is a very common problem.
 
 kr,
 guenther
 
 -Ursprüngliche Nachricht-
 Von: Nic Werner [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 01. März 2005 00:17
 An: Struts Users Mailing List
 Betreff: Re: Multi-select file chooser
 
 Wow, what browser is that? Can they hold down CTRL? (assuming Windows)
 
 Rakefet Bitton wrote:
 
 
 
 
 Hi, I'm using the file tag to select a file from my jsp. The default
 browser allows the user to select only 1 file at a time. The user can
 not multi select files or a directory.
 
 Does anyone know of a multi-select file and directory chooser

Re: AW: AW: AW: Multi-select file chooser

2005-03-01 Thread Frank W. Zammetti
I'd like to see even a trick version.  Certainly you would agree that 
the standard browser controls don't allow for this... The only 
possibility I see is building your own drop-down-type control, but then 
you have to deal with the scripting security issues.  If you can put 
something together, I can render it using my tag and then the example I 
posted fulfills what Rocky was looking for.

Dakota Jack wrote:
You can do this.  There are many ways.  They all use subterfuge,
however, and facades.
On Mon, 28 Feb 2005 18:49:34 -0500, Frank W. Zammetti
[EMAIL PROTECTED] wrote:
Ah, your right... I misunderstood the OP... I wasn't thinking like a
multi-select drop-down.  I would agree there is probably no way to do
that with standard browser functionality.  You'd have to get into
applets or ActiveX controls, or something along those lines.
But... If you took the form approach like I've shown, there's nothing to
stop you from dynamically adding elements to the form as more files are
selected.  However, they user would have to select a file, click Add (or
something like that), then do that again until they were done.  If
*that* would fulfill the requirements of the OP, I think that could be done.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:
for sure there is no doubt on my side ;-) this is exactly what i meant if
you keep the number of files constant.
but as the originator of this thread alreay said: he looks for a solution of
multiple file SELECTION. beside the applet i have no idea how to solve
that
-Ursprüngliche Nachricht-
Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 01. März 2005 00:42
An: Günther Wieser
Cc: 'Struts Users Mailing List'
Betreff: Re: AW: AW: Multi-select file chooser
Just in case there was any doubt, here's the form from my web hosts'
file manager I was referring to:
form action=doupload.html method=POST ENCTYPE=multipart/form-data
target=infofr
  input type=file name=file1
  input type=file name=file2
  input type=file name=file3
  input type=file name=file4
  input type=file name=file5
  input type=file name=file6
  input type=file name=file7
  input type=file name=file8
  input type=file name=file9
  input type=file name=file10
  input type=file name=file11
  input type=file name=file12
   br
  Overwrite existing files:
  input type=checkbox name=overwrite value=1
  br
  input type=submit value=Upload
/form
I could think of some better ways to do present the UI, but that's the basic
idea.  Heck, throw that in a .tag file and your all set (in a basic way).
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:

another solution would be to use (signed) java applets, which is (for the
enduser) the best looking solution, but the effort to do so is REALLY BIG,
so if you don't get paid like mad forget it
-Ursprüngliche Nachricht-
Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 01. März 2005 00:29
An: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: Multi-select file chooser
You can have as many file elements in a form as you want, and you can
process them all at once.  My web host (LunarPages) has a decent file
manager, one of the functions it has is the ability to upload up to 12
files

at a time.
I don't know of any single tag to render such a form, but that's really
what

you need, and it should be trivial to write (although I'd bet it exists
somewhere).  It's the server-side processing that *could* be tricky
(although I think Commons Upload would deal with it just fine, probably
give

you a collection or something, I forget what the interface looks like.)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:

this is standard browser behaviour, haven't seen any browser who would
allow you to select more than one file.
reason for that is that your form only includes one form field of type
file, so how can the browser add more than one file in a way that your
app understands this?
the only chance for multiple file selection is to ask the user before
generation of the form how many files do you want to upload, or by
adding another file field to the form as soon as the user selects one
(using javascript; but this is quite ugly and can make a lot of
troubles with different browser or javascript-disabled ones...) or
he/she upload a zip file...
if there is someone outside who knows a better solution, let us know,
this is a very common problem.
kr,
guenther
-Ursprüngliche Nachricht-
Von: Nic Werner [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 01. März 2005 00:17
An: Struts Users Mailing List
Betreff: Re: Multi-select file chooser
Wow, what browser is that? Can they hold down CTRL? (assuming Windows)
Rakefet Bitton wrote:


Hi, I'm using the file tag to select a file from my jsp. The default

Re: AW: AW: AW: Multi-select file chooser

2005-03-01 Thread Dakota Jack
Hi, Frank,

Just look at what I sent you yesterday.  


On Tue, 01 Mar 2005 18:50:38 -0500, Frank W. Zammetti
[EMAIL PROTECTED] wrote:
 I'd like to see even a trick version.  Certainly you would agree that
 the standard browser controls don't allow for this... The only
 possibility I see is building your own drop-down-type control, but then
 you have to deal with the scripting security issues.  If you can put
 something together, I can render it using my tag and then the example I
 posted fulfills what Rocky was looking for.
 
 Dakota Jack wrote:
  You can do this.  There are many ways.  They all use subterfuge,
  however, and facades.
 
 
  On Mon, 28 Feb 2005 18:49:34 -0500, Frank W. Zammetti
  [EMAIL PROTECTED] wrote:
 
 Ah, your right... I misunderstood the OP... I wasn't thinking like a
 multi-select drop-down.  I would agree there is probably no way to do
 that with standard browser functionality.  You'd have to get into
 applets or ActiveX controls, or something along those lines.
 
 But... If you took the form approach like I've shown, there's nothing to
 stop you from dynamically adding elements to the form as more files are
 selected.  However, they user would have to select a file, click Add (or
 something like that), then do that again until they were done.  If
 *that* would fulfill the requirements of the OP, I think that could be done.
 
 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 
 Günther Wieser wrote:
 
 for sure there is no doubt on my side ;-) this is exactly what i meant if
 you keep the number of files constant.
 but as the originator of this thread alreay said: he looks for a solution 
 of
 multiple file SELECTION. beside the applet i have no idea how to solve
 that
 
 -Ursprüngliche Nachricht-
 Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 01. März 2005 00:42
 An: Günther Wieser
 Cc: 'Struts Users Mailing List'
 Betreff: Re: AW: AW: Multi-select file chooser
 
 Just in case there was any doubt, here's the form from my web hosts'
 file manager I was referring to:
 
 form action=doupload.html method=POST ENCTYPE=multipart/form-data
 target=infofr
input type=file name=file1
input type=file name=file2
input type=file name=file3
input type=file name=file4
input type=file name=file5
input type=file name=file6
input type=file name=file7
input type=file name=file8
input type=file name=file9
input type=file name=file10
input type=file name=file11
input type=file name=file12
 br
Overwrite existing files:
input type=checkbox name=overwrite value=1
br
input type=submit value=Upload
 /form
 
 I could think of some better ways to do present the UI, but that's the 
 basic
 idea.  Heck, throw that in a .tag file and your all set (in a basic way).
 
 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 
 
 Günther Wieser wrote:
 
 
 another solution would be to use (signed) java applets, which is (for the
 enduser) the best looking solution, but the effort to do so is REALLY BIG,
 so if you don't get paid like mad forget it
 
 
 -Ursprüngliche Nachricht-
 Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 01. März 2005 00:29
 An: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Betreff: Re: AW: Multi-select file chooser
 
 You can have as many file elements in a form as you want, and you can
 process them all at once.  My web host (LunarPages) has a decent file
 manager, one of the functions it has is the ability to upload up to 12
 
 files
 
 
 at a time.
 
 I don't know of any single tag to render such a form, but that's really
 
 what
 
 
 you need, and it should be trivial to write (although I'd bet it exists
 somewhere).  It's the server-side processing that *could* be tricky
 (although I think Commons Upload would deal with it just fine, probably
 
 give
 
 
 you a collection or something, I forget what the interface looks like.)
 
 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 
 Günther Wieser wrote:
 
 
 
 this is standard browser behaviour, haven't seen any browser who would
 allow you to select more than one file.
 reason for that is that your form only includes one form field of type
 file, so how can the browser add more than one file in a way that your
 app understands this?
 
 the only chance for multiple file selection is to ask the user before
 generation of the form how many files do you want to upload, or by
 adding another file field to the form as soon as the user selects one
 (using javascript; but this is quite ugly and can make a lot of
 troubles with different browser or javascript-disabled ones...) or
 he/she upload a zip file...
 
 if there is someone outside who knows a better solution, let us know,
 this is a very common problem.
 
 kr,
 guenther

AW: AW: Multi-select file chooser

2005-02-28 Thread Günther Wieser
 
just in case you wonder: it's not a text field, it's file field (input
type=file name=Name maxlength=length accept=Mime-Type)

-Ursprüngliche Nachricht-
Von: Nic Werner [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 01. März 2005 00:24
An: Struts Users Mailing List
Betreff: Re: AW: Multi-select file chooser

Ah, I looked at it that he was selecting files from a directory tree, not
entering into a text field

Günther Wieser wrote:

this is standard browser behaviour, haven't seen any browser who would 
allow you to select more than one file.
reason for that is that your form only includes one form field of type 
file, so how can the browser add more than one file in a way that your 
app understands this?

the only chance for multiple file selection is to ask the user before 
generation of the form how many files do you want to upload, or by 
adding another file field to the form as soon as the user selects one 
(using javascript; but this is quite ugly and can make a lot of 
troubles with different browser or javascript-disabled ones...) or 
he/she upload a zip file...

if there is someone outside who knows a better solution, let us know, 
this is a very common problem.

kr,
guenther

-Ursprüngliche Nachricht-
Von: Nic Werner [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 01. März 2005 00:17
An: Struts Users Mailing List
Betreff: Re: Multi-select file chooser

Wow, what browser is that? Can they hold down CTRL? (assuming Windows)

Rakefet Bitton wrote:

  

Hi, I'm using the file tag to select a file from my jsp. The default 
browser allows the user to select only 1 file at a time. The user can 
not multi select files or a directory.

Does anyone know of a multi-select file and directory chooser?

Thanks very much.



-
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]



AW: AW: Multi-select file chooser

2005-02-28 Thread Günther Wieser
another solution would be to use (signed) java applets, which is (for the
enduser) the best looking solution, but the effort to do so is REALLY BIG,
so if you don't get paid like mad forget it


-Ursprüngliche Nachricht-
Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 01. März 2005 00:29
An: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: Multi-select file chooser

You can have as many file elements in a form as you want, and you can
process them all at once.  My web host (LunarPages) has a decent file
manager, one of the functions it has is the ability to upload up to 12 files
at a time.

I don't know of any single tag to render such a form, but that's really what
you need, and it should be trivial to write (although I'd bet it exists
somewhere).  It's the server-side processing that *could* be tricky
(although I think Commons Upload would deal with it just fine, probably give
you a collection or something, I forget what the interface looks like.)

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

Günther Wieser wrote:
 this is standard browser behaviour, haven't seen any browser who would 
 allow you to select more than one file.
 reason for that is that your form only includes one form field of type 
 file, so how can the browser add more than one file in a way that your 
 app understands this?
 
 the only chance for multiple file selection is to ask the user before 
 generation of the form how many files do you want to upload, or by 
 adding another file field to the form as soon as the user selects one 
 (using javascript; but this is quite ugly and can make a lot of 
 troubles with different browser or javascript-disabled ones...) or 
 he/she upload a zip file...
 
 if there is someone outside who knows a better solution, let us know, 
 this is a very common problem.
 
 kr,
 guenther
 
 -Ursprüngliche Nachricht-
 Von: Nic Werner [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 01. März 2005 00:17
 An: Struts Users Mailing List
 Betreff: Re: Multi-select file chooser
 
 Wow, what browser is that? Can they hold down CTRL? (assuming Windows)
 
 Rakefet Bitton wrote:
 
 
Hi, I'm using the file tag to select a file from my jsp. The default 
browser allows the user to select only 1 file at a time. The user can 
not multi select files or a directory.

Does anyone know of a multi-select file and directory chooser?

Thanks very much.



-
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: AW: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Just in case there was any doubt, here's the form from my web hosts' 
file manager I was referring to:

form action=doupload.html method=POST ENCTYPE=multipart/form-data 
target=infofr
  input type=file name=file1
  input type=file name=file2
  input type=file name=file3
  input type=file name=file4
  input type=file name=file5
  input type=file name=file6
  input type=file name=file7
  input type=file name=file8
  input type=file name=file9
  input type=file name=file10
  input type=file name=file11
  input type=file name=file12
   br
  Overwrite existing files:
  input type=checkbox name=overwrite value=1
  br
  input type=submit value=Upload
/form

I could think of some better ways to do present the UI, but that's the 
basic idea.  Heck, throw that in a .tag file and your all set (in a 
basic way).

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:
another solution would be to use (signed) java applets, which is (for the
enduser) the best looking solution, but the effort to do so is REALLY BIG,
so if you don't get paid like mad forget it
-Ursprüngliche Nachricht-
Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 01. März 2005 00:29
An: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: Multi-select file chooser

You can have as many file elements in a form as you want, and you can
process them all at once.  My web host (LunarPages) has a decent file
manager, one of the functions it has is the ability to upload up to 12 files
at a time.
I don't know of any single tag to render such a form, but that's really what
you need, and it should be trivial to write (although I'd bet it exists
somewhere).  It's the server-side processing that *could* be tricky
(although I think Commons Upload would deal with it just fine, probably give
you a collection or something, I forget what the interface looks like.)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:
this is standard browser behaviour, haven't seen any browser who would 
allow you to select more than one file.
reason for that is that your form only includes one form field of type 
file, so how can the browser add more than one file in a way that your 
app understands this?

the only chance for multiple file selection is to ask the user before 
generation of the form how many files do you want to upload, or by 
adding another file field to the form as soon as the user selects one 
(using javascript; but this is quite ugly and can make a lot of 
troubles with different browser or javascript-disabled ones...) or 
he/she upload a zip file...

if there is someone outside who knows a better solution, let us know, 
this is a very common problem.

kr,
guenther
-Ursprüngliche Nachricht-
Von: Nic Werner [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 01. März 2005 00:17
An: Struts Users Mailing List
Betreff: Re: Multi-select file chooser
Wow, what browser is that? Can they hold down CTRL? (assuming Windows)
Rakefet Bitton wrote:

Hi, I'm using the file tag to select a file from my jsp. The default 
browser allows the user to select only 1 file at a time. The user can 
not multi select files or a directory.

Does anyone know of a multi-select file and directory chooser?
Thanks very much.

-
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]


AW: AW: AW: Multi-select file chooser

2005-02-28 Thread Günther Wieser
for sure there is no doubt on my side ;-) this is exactly what i meant if
you keep the number of files constant.
but as the originator of this thread alreay said: he looks for a solution of
multiple file SELECTION. beside the applet i have no idea how to solve
that

-Ursprüngliche Nachricht-
Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 01. März 2005 00:42
An: Günther Wieser
Cc: 'Struts Users Mailing List'
Betreff: Re: AW: AW: Multi-select file chooser

Just in case there was any doubt, here's the form from my web hosts' 
file manager I was referring to:

form action=doupload.html method=POST ENCTYPE=multipart/form-data 
target=infofr
   input type=file name=file1
   input type=file name=file2
   input type=file name=file3
   input type=file name=file4
   input type=file name=file5
   input type=file name=file6
   input type=file name=file7
   input type=file name=file8
   input type=file name=file9
   input type=file name=file10
   input type=file name=file11
   input type=file name=file12
br
   Overwrite existing files:
   input type=checkbox name=overwrite value=1
   br
   input type=submit value=Upload
/form

I could think of some better ways to do present the UI, but that's the basic
idea.  Heck, throw that in a .tag file and your all set (in a basic way).

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


Günther Wieser wrote:
 another solution would be to use (signed) java applets, which is (for the
 enduser) the best looking solution, but the effort to do so is REALLY BIG,
 so if you don't get paid like mad forget it
 
 
 -Ursprüngliche Nachricht-
 Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
 Gesendet: Dienstag, 01. März 2005 00:29
 An: Struts Users Mailing List
 Cc: [EMAIL PROTECTED]
 Betreff: Re: AW: Multi-select file chooser
 
 You can have as many file elements in a form as you want, and you can
 process them all at once.  My web host (LunarPages) has a decent file
 manager, one of the functions it has is the ability to upload up to 12
files
 at a time.
 
 I don't know of any single tag to render such a form, but that's really
what
 you need, and it should be trivial to write (although I'd bet it exists
 somewhere).  It's the server-side processing that *could* be tricky
 (although I think Commons Upload would deal with it just fine, probably
give
 you a collection or something, I forget what the interface looks like.)
 
 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 
 Günther Wieser wrote:
 
this is standard browser behaviour, haven't seen any browser who would 
allow you to select more than one file.
reason for that is that your form only includes one form field of type 
file, so how can the browser add more than one file in a way that your 
app understands this?

the only chance for multiple file selection is to ask the user before 
generation of the form how many files do you want to upload, or by 
adding another file field to the form as soon as the user selects one 
(using javascript; but this is quite ugly and can make a lot of 
troubles with different browser or javascript-disabled ones...) or 
he/she upload a zip file...

if there is someone outside who knows a better solution, let us know, 
this is a very common problem.

kr,
guenther

-Ursprüngliche Nachricht-
Von: Nic Werner [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 01. März 2005 00:17
An: Struts Users Mailing List
Betreff: Re: Multi-select file chooser

Wow, what browser is that? Can they hold down CTRL? (assuming Windows)

Rakefet Bitton wrote:



Hi, I'm using the file tag to select a file from my jsp. The default 
browser allows the user to select only 1 file at a time. The user can 
not multi select files or a directory.

Does anyone know of a multi-select file and directory chooser?

Thanks very much.



-
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: AW: AW: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
Ah, your right... I misunderstood the OP... I wasn't thinking like a 
multi-select drop-down.  I would agree there is probably no way to do 
that with standard browser functionality.  You'd have to get into 
applets or ActiveX controls, or something along those lines.

But... If you took the form approach like I've shown, there's nothing to 
stop you from dynamically adding elements to the form as more files are 
selected.  However, they user would have to select a file, click Add (or 
something like that), then do that again until they were done.  If 
*that* would fulfill the requirements of the OP, I think that could be done.

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:
for sure there is no doubt on my side ;-) this is exactly what i meant if
you keep the number of files constant.
but as the originator of this thread alreay said: he looks for a solution of
multiple file SELECTION. beside the applet i have no idea how to solve
that
-Ursprüngliche Nachricht-
Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 01. März 2005 00:42
An: Günther Wieser
Cc: 'Struts Users Mailing List'
Betreff: Re: AW: AW: Multi-select file chooser

Just in case there was any doubt, here's the form from my web hosts' 
file manager I was referring to:

form action=doupload.html method=POST ENCTYPE=multipart/form-data 
target=infofr
   input type=file name=file1
   input type=file name=file2
   input type=file name=file3
   input type=file name=file4
   input type=file name=file5
   input type=file name=file6
   input type=file name=file7
   input type=file name=file8
   input type=file name=file9
   input type=file name=file10
   input type=file name=file11
   input type=file name=file12
br
   Overwrite existing files:
   input type=checkbox name=overwrite value=1
   br
   input type=submit value=Upload
/form

I could think of some better ways to do present the UI, but that's the basic
idea.  Heck, throw that in a .tag file and your all set (in a basic way).
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:
another solution would be to use (signed) java applets, which is (for the
enduser) the best looking solution, but the effort to do so is REALLY BIG,
so if you don't get paid like mad forget it
-Ursprüngliche Nachricht-
Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 01. März 2005 00:29
An: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Betreff: Re: AW: Multi-select file chooser

You can have as many file elements in a form as you want, and you can
process them all at once.  My web host (LunarPages) has a decent file
manager, one of the functions it has is the ability to upload up to 12
files
at a time.
I don't know of any single tag to render such a form, but that's really
what
you need, and it should be trivial to write (although I'd bet it exists
somewhere).  It's the server-side processing that *could* be tricky
(although I think Commons Upload would deal with it just fine, probably
give
you a collection or something, I forget what the interface looks like.)
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:

this is standard browser behaviour, haven't seen any browser who would 
allow you to select more than one file.
reason for that is that your form only includes one form field of type 
file, so how can the browser add more than one file in a way that your 
app understands this?

the only chance for multiple file selection is to ask the user before 
generation of the form how many files do you want to upload, or by 
adding another file field to the form as soon as the user selects one 
(using javascript; but this is quite ugly and can make a lot of 
troubles with different browser or javascript-disabled ones...) or 
he/she upload a zip file...

if there is someone outside who knows a better solution, let us know, 
this is a very common problem.

kr,
guenther
-Ursprüngliche Nachricht-
Von: Nic Werner [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 01. März 2005 00:17
An: Struts Users Mailing List
Betreff: Re: Multi-select file chooser
Wow, what browser is that? Can they hold down CTRL? (assuming Windows)
Rakefet Bitton wrote:


Hi, I'm using the file tag to select a file from my jsp. The default 
browser allows the user to select only 1 file at a time. The user can 
not multi select files or a directory.

Does anyone know of a multi-select file and directory chooser?
Thanks very much.

-
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: AW: AW: Multi-select file chooser

2005-02-28 Thread Frank W. Zammetti
There isn't specifically a hidden element, you are correct, but you can 
hide a file element via CSS.  I've done this before myself so I know 
it works.

Hey, don't worry about killing my motiviation... At best you'll stop me 
from wasting my time later if you point out something that legitimately 
makes it impossible, at worst I'll just try it anyway and find out on my 
own :)

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Günther Wieser wrote:
 
i don't want to stop your motiviation here, but a problem might be that
there's no hidden file input field. and if it's not a file input field
it's useless as we need the browser to do all the encoding of the content
into multipart/mime etc.

is it possible to add input elements using java in way that they don't get
rendered?
-Ursprüngliche Nachricht-
Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 01. März 2005 00:45
An: Struts Users Mailing List
Betreff: Re: AW: Multi-select file chooser

Ah, didn't see this until I posted that form code :)
This is what I was talking about with the better ways to present the UI 
comment.  I would have to test it, but I *think* you should be able to have
a single file element that is visible, with a number of hidden ones, and
for each file you select with the visible one you actually populate a hidden
one.  Maybe have a listbox that the files get added to, and the user can
remove existing items or add new ones, something along those lines (I'm
thinking out loud here).
There might be some scripting security issues there, I'd have to play a bit,
but I suspect it might work.  That would give you your single browse and
upload button like you want.
If this is something that is interesting to enough people, I would mind
throwing a real tag together with some options and such, perhaps a couple of
different UI presentations, etc.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Rakefet Bitton wrote:
Frank W. Zammetti fzlists at omnytex.com writes:

You can have as many file elements in a form as you want, and you 
can process them all at once.  My web host (LunarPages) has a decent 
file manager, one of the functions it has is the ability to upload up 
to 12 files at a time.

I don't know of any single tag to render such a form, but that's 
really what you need, and it should be trivial to write (although I'd 
bet it exists somewhere).  It's the server-side processing that 
*could* be tricky (although I think Commons Upload would deal with it 
just fine, probably give you a collection or something, I forget what 
the interface looks like.)


Yes, you can have as many file elements as you want on a form. But 
wouldn't you have a browse button for each file element? What I 
was hoping is that when the user selects the browse button and the 
file chooser comes up, they could select more then 1 file.  Do you know
how I might do this?
Thanks,
Rocky Bitton

-
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]