Hi.
    The proper way to do this is to send a Content-Disposition header entry
with a filename attribute.  You will need to look this up to get the precise
name of the attribute.  In any case, IE5.5 has a bug which behaves as you
describe, and you may need to download a patch from Microsoft.  Quite a bug
heh!

    I am distributing files with map data in them as zip files so I set the
Content-Type as application/zip and the Content-Disposition as I have
indicated above.  Works fine with Netscape and some IE5's but not all of
them.


----- Original Message -----
From: "Van Dooren, Damian" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 3:43 PM
Subject: Downloading a file via a Servlet


> I was wondering if anyone knew of a way to get around the following
> situation:
>
> We have a servlet that sends back PDFs that are stored in a database.
> Everything seems to work great but the one oddity/issue that I would like
to
> solve if possible is. When someone wants to save the PDF, instead of
> viewing, it wants to save the PDF as the name of the servlet. I understand
> why this is the case, but I wonder if there is anything, perhaps in the
> content header, that I could set the actual name of the file.
>
> Any suggestions would be greatly appreciated.
>
>
>
> -----
> Damian Van Dooren
> Information Technology
> The Investment Centre
> (519) 672-4389 x718
>
>


Reply via email to