File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes download file without open/save popup message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "download file without open/save popup message" Watch "download file without open/save popup message" New topic

download file without open/save popup message

Omar Mohaidat
Ranch Hand

Joined: Jan 16, 2008
Posts: 34
Hi All,

I have a JSP file contains link to download pdf file, when i click on this link a popup message appear to open or save this pdf file. Is there a way to view the file without this popup message?; because in my case i need to open the file and don't need to save this file at all.

Stefan Evans

Joined: Jul 06, 2005
Posts: 1016
It is pretty much completely dependent on the client browser and how it is configured.
There isn't much code-wise you can do to influence this.

Setting the right content type header (application/pdf) could possibly help, but that's about it.

I agree. Here's the link:
subject: download file without open/save popup message
Similar Threads
dialog box doesn't appear when downloading a PDF
Save a pdf or any file to client machine from server
jsf: open pdf in browser
File Extenssion not showing in Mozilla
repost with more detail on problem of download servlet in Internet Explore