struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <George.Dinwid...@wellsfargo.com>
Subject RE: Upload all files of a dir at one go
Date Fri, 16 Dec 2005 19:42:04 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message