Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 52023 invoked by uid 500); 24 Jun 2001 06:22:12 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 52016 invoked from network); 24 Jun 2001 06:22:12 -0000 Received: from unknown (HELO mailsrv.pinkline.net) (202.177.159.149) by h31.sny.collab.net with SMTP; 24 Jun 2001 06:22:12 -0000 Received: (qmail 21171 invoked from network); 24 Jun 2001 06:10:34 -0000 Received: from unknown (HELO default) (202.131.128.48) by host159-149.wipro.net.in with SMTP; 24 Jun 2001 06:10:34 -0000 Message-ID: <000d01c0fc76$d6133f60$308083ca@default> Reply-To: "Hemant Singh" From: "Hemant Singh" To: Subject: Download via servlet behaviour Date: Sun, 24 Jun 2001 11:55:28 +0530 Organization: Supportscape Inc. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01C0FCA4.902A47E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C0FCA4.902A47E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Download using servlet HI ALL: 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. Cheers Hemant ------=_NextPart_000_000A_01C0FCA4.902A47E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Subject: Download using servlet
HI = ALL:
My=20 company offers some of it products for download,
but we allow only = authorized=20 user to access these
downloads, and for this reason the download is = done=20 via
servlets (servlet stream writes the complete file at client = end)
but i=20 m noting a strange thing in this, when user click on download
than a = dialog=20 on browser asking them to open or save the file,  now
if the = user,=20 clicks on cancel than also my servlet executes complete,
though the = user is=20 infact not downloading the file, It must be because
that servlet is = called as=20 soon as user clicks on download link, BUT
there must be some way out = to=20 prevent this,
Is there?
Is someone else also noted or faced this=20 thing.
Cheers
Hemant
------=_NextPart_000_000A_01C0FCA4.902A47E0--