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
On Tue, Jun 15, 2010 at 5:24 AM, Alex Rass 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
>
am it right back to the
client as a redirect or smth. This temporary file thing seems very improper.
- Alex
-Original Message-
From: Alex Zeit [mailto:zeita...@googlemail.com]
Sent: Sunday, May 30, 2010 7:30 AM
To: users@wicket.apache.org
Subject: Re: Creating and zipping binary file
Thank you very much Jeremy for your help. As you suggested I create
temporary dir and place files there.
Wicket is really great! The solution to my problem was just in couple of
lines of code:
org.apache.wicket.util.file.File wdir = new
org.apache.wicket.util.file.File(createTempDirectory());
On Fri, May 28, 2010 at 4:46 AM, Alex Zeit wrote:
> Dear All,
> I would like to create some binary files, zip them and start download in
> one
> step.
> I started with the functionality to create files depending on form input:
>
>form.add(new Button("button1", new Model("Download")) {
>
Dear All,
I would like to create some binary files, zip them and start download in one
step.
I started with the functionality to create files depending on form input:
form.add(new Button("button1", new Model("Download")) {
@Override
public void onSubmit() {