Re: Downloading a file via a Servlet

2001-01-30 Thread Roger Mosher
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

RE: Downloading a file via a Servlet

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

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

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 fo

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 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 s

Re: Downloading a file via a Servlet

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

Downloading a file via a Servlet

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