Thanks, I'll give this a shot.
-Original Message-
From: Boris Erukhimov [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 11:19 AM
To: Orion-Interest
Subject: Re: Downloading a file via a Servlet
You may try this for download any type of file
code
//Ns
nt: Monday, January 29, 2001 6:31 PM
To: Orion-Interest
Subject: Re: Downloading a file via a Servlet
I couldn't even get IE to recognize that the file I was
downloading was
a PDF file from a database via servlet, but obviously I
missed something
you got to work, I would love to
You may try this for download any type of file
code
//Ns and MSIE need different content type to force download
if(-1 _request.getHeader("User-Agent").indexOf("MSIE") )
response.setContentType("message/external-body;
access-type=anon-ftp") ;
else
"Van Dooren, Damian" wrote:
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
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
I tend to put the filename as pathinfo - i.e.
/myservlet/made-up-name.pdf?param1=yadda
If memory serves me, you need to change the servlet mapping to be
/myservlet/* for this to work.
HTH,
Trevor
"Van Dooren, Damian" wrote:
I was wondering if anyone knew of a way to get around the