Thank you very much for your suggestions. I was also thinking of creating folders with random names. I am using geotools libs to generate shapefiles set that I want to zip and stream back. I did not figure out yet how can I generate those files to stream using Geotools.
2010/6/15 Jeremy Thomerson <[email protected]> > On Tue, Jun 15, 2010 at 5:24 AM, Alex Rass <[email protected]> wrote: > > > You should consider that 2 users can be doing it at the same time. > > Which will lead to serious errors. > > I would suggest using a random file name (or one with session hash in the > > filename) so you avoid userA downloading userB's download.zip > > > > I would think that you should be able to just stream it right back to the > > client as a redirect or smth. This temporary file thing seems very > > improper. > > > > - Alex > > > > You don't even have to do all that random naming stuff yourself. Just use > a > Resource that's local to the user's session and Wicket will create the URL > for you. That also saves him from having to write it out to a file at all > - > he can just stream it back if desired. > > -- > Jeremy Thomerson > http://www.wickettraining.com >
