George-
Lots of ideas on handling FileUpload via Servlet here
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/aucserv.html
Anyone else?
Martin-
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Friday, December 16, 2005 2:42 PM
Subject: RE: Upload all files of a dir at one go


Dave Newton responded
Shivani Sawhney wrote:

>And tell me something, probably I am just thinking aloud and am even
>wrong, but if I can do it through code then can't we just
have a custom
>tag that zips the chosen directory at client side, uploads
the zipped
>file on to the server and provides the programmer with appropriate
>methods to use the entries in the zipped file more conveniently.
>
>
Custom tags are run _on_the_server_ not on the client. That
said, if you
render JavaScript it will be run on the client side, but I
don't know if
there's any way to access the client's filesystem. Seems like
that would
be scary. You could probably do it with an ActiveX control, because
apparently you can wreak all sorts of havoc that way.

I've used a Java applet to upload multiple files.  Of course, that
brings in all of the difficulties of using applets, since you're writing
code for an environment you don't control.  I sent them individually,
not zipped, and retrieved them directly from the request, bypassing the
Struts form.

- George Dinwiddie
  http://www.idiacomputing.com

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

Reply via email to