tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemant Singh" <>
Subject Download via servlet behaviour
Date Sun, 24 Jun 2001 06:25:28 GMT
Subject: Download using servlet
My company offers some of it products for download,
but we allow only authorized user to access these
downloads, and for this reason the download is done via
servlets (servlet stream writes the complete file at client end)
but i m noting a strange thing in this, when user click on download
than a dialog on browser asking them to open or save the file,  now
if the user, clicks on cancel than also my servlet executes complete,
though the user is infact not downloading the file, It must be because
that servlet is called as soon as user clicks on download link, BUT
there must be some way out to prevent this,
Is there?
Is someone else also noted or faced this thing.

View raw message