en, 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 t
IL PROTECTED]]
> Sent: 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
> mis
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
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 fo
> 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
"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 s
You may try this for download any type of file
//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
r
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
vi