RE: Downloading a file via a Servlet

2001-01-30 Thread Van Dooren, Damian
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

RE: Downloading a file via a Servlet

2001-01-30 Thread Van Dooren, Damian
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

Re: Downloading a file via a Servlet

2001-01-29 Thread Boris Erukhimov
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

Re: Downloading a file via a Servlet

2001-01-29 Thread Norman Jefferies
"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

Re: Downloading a file via a Servlet

2001-01-29 Thread Tim Endres
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

Re: Downloading a file via a Servlet

2001-01-29 Thread Trevor Squires
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