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", "attachment;filename=downloaded.pdf"); Of course browser settings and how your Adobe Reader, Preview or Browser plugins are configured may override the "inline"? What browsers and OS's matter to you? Older IE versions are pretty sticky. Firefox can be set to download no matter what. Regards, Dave On Jun 29, 2010, at 12:08 PM, Dola Woolfe wrote: > 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 > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org