On Dec 12, 2007 7:23 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> correct. only that one user will have to wait for the download to
> complete. if that is undesired then use a shared resource.
This is what we experience, and it is fine.
Good natural limit on the amount of load each user can cause by accident :-)
Here's Igors previous pseudocode in Java for the sake of completeness.
My question is: how do I set the downloaded filename now?
@Override
public void onSubmit() {
getRequestCycle().setRequestTarget(new IRequestTarget()
{
public void detach(RequestCycle arg0) {
// TODO Auto-generated method stub
}
public void respond(RequestCycle r) {
Response response = r.getResponse();
response.setContentType("application/zip");
OutputStream
out=response.getOutputStream();
ZipOutputStream zout = new
ZipOutputStream(out);
for (Entry f : getFileList()) {
addFileToZip(zout, f);
}
try {
zout.finish();
zout.close();
} catch (IOException e) {
LOGGER.warn("IO exception while
streaming ZIP file: ", e);
}
}});
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]