Article View: borland.public.jbuilder.java.api
Article #2711Downloading a file to a client with a servlet
From: Aur
Date: Wed, 28 Jun 2000 00:00
Date: Wed, 28 Jun 2000 00:00
22 lines
1168 bytes
1168 bytes
Hello!
I have written a servlet that is used to download a file from a client
browser.
Instead of reading the file on my server, and using a PrintWriter( ) to send
the file to the HttpServletResponse response,
I just used a redirection:
public void doGet(HttpServletRequest req, HttpServletResponse res)
{
.....
response.sendRedirect(FileName);
.....
}
But I would like to know in my servlet is the file has been downloaded
succesfully. Since the redirection doesn't return any value, I was wondering
if it is possible to get this information.
Thanks in advance,
-Aur
Technical Details
Message-ID:
<slkma6gtjev63@corp.supernews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,4e915083537c957a,start X-Google-Attributes: gid1089d0,public From: "Aur" <aurelien@sensiva.com> Subject: Downloading a file to a client with a servlet Date: 2000/06/28 Message-ID: <slkma6gtjev63@corp.supernews.com> X-Deja-AN: 640117983 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: newsabuse@supernews.com Organization: Posted via Supernews, http://www.supernews.com X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.api