PDF to acrobat

2010-06-29 Thread Dola Woolfe
Hi, I set response.setContentType(application/pdf); as a result, the served up content triggers a Download rather than opening acrobat within browser window. Do I get to control what happens at client end? I want acrobat to open within browser. How do I achieve that? Thanks, Dola

Re: PDF to acrobat

2010-06-29 Thread Thad Humphries
What happens on the browser end is entirely up to the user. It's subject to the browser they are using, whatever browser plug-ins they've installed, and how they've set those plug-ins. On Tue, Jun 29, 2010 at 3:08 PM, Dola Woolfe dolac...@yahoo.com wrote: Hi, I set

Re: PDF to acrobat

2010-06-29 Thread Dola Woolfe
Message From: Thad Humphries thad.humphr...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Tue, June 29, 2010 3:14:03 PM Subject: Re: PDF to acrobat What happens on the browser end is entirely up to the user. It's subject to the browser they are using, whatever browser plug-ins

Re: PDF to acrobat

2010-06-29 Thread Hassan Schroeder
On Tue, Jun 29, 2010 at 12:16 PM, Dola Woolfe dolac...@yahoo.com wrote: For example, when I click on PDF links, sometimes it opens the file in the browser window and at other times it downloads the file. What's the possible difference in the (common default) settings? Content-Disposition:

Re: PDF to acrobat

2010-06-29 Thread Zachary Valentiner
Hi Dola, Setting the content type to application/octet-stream will force a download. If I recall my headers correclty, setting application/pdf is as close as you can get to telling it to open in the browser without embedding it in an HTML file directly and thereby forcing the browser to use a

Re: PDF to acrobat

2010-06-29 Thread David Fisher
You will want to do this: response.setContentType(application/pdf); response.setHeader(Content-disposition, inline); For an attachment / download you will want to do: response.setContentType(application/pdf); response.setHeader(Content-disposition,

RE: PDF to acrobat

2010-06-29 Thread Martin Gainty
accepter aucune responsabilité pour le contenu fourni. From: zvalenti...@gmail.com Subject: Re: PDF to acrobat Date: Tue, 29 Jun 2010 21:23:42 +0200 To: users@tomcat.apache.org Hi Dola, Setting the content type to application/octet-stream will force a download. If I recall my headers

Re: PDF to acrobat

2010-06-29 Thread Thad Humphries
Comment inline below. On Tue, Jun 29, 2010 at 3:23 PM, Zachary Valentiner zvalenti...@gmail.comwrote: Hi Dola, Setting the content type to application/octet-stream will force a download. If I recall my headers correclty, setting application/pdf is as close as you can get to telling it to

Re: PDF to acrobat

2010-06-29 Thread Dola Woolfe
There we go. Thank you! - Original Message From: David Fisher dfis...@jmlafferty.com To: Tomcat Users List users@tomcat.apache.org Sent: Tue, June 29, 2010 3:41:18 PM Subject: Re: PDF to acrobat You will want to do this: response.setContentType(application/pdf

Re: PDF to acrobat

2010-06-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thad, On 6/29/2010 4:05 PM, Thad Humphries wrote: application/octet-stream is one way, but it's by no means bullet-proof. If the file name has an extension, some version of IE will blow off the MIME type and do what they damn well please based on