aspose file tools*
The moose likes Servlets and the fly likes Open pdf from Explorer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Open pdf from Explorer" Watch "Open pdf from Explorer" New topic
Author

Open pdf from Explorer

Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
hi all..i do'nt know if this is correct post here or at JSP forum
i want to open pdf file in the Explorer,,,i mean when clicking on some button , i want to open the file at Explorer, not to download it then open it from the downloaded pdf..



Regards
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

Create a link to it and make sure that your browser is properly configured.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Senthil S Kumar
Greenhorn

Joined: Aug 13, 2006
Posts: 10
You can use the "Content-disposition" property to open the file inline or as an attachment.



Also, make sure you are setting the content type to "application/pdf".



Refer here for more details.
[ August 13, 2006: Message edited by: Senthil S Kumar ]
Alan Hermin
Ranch Hand

Joined: Feb 16, 2006
Posts: 290
Thnx all ...
all thing go fine..

Rusty Smythe
Ranch Hand

Joined: Aug 09, 2006
Posts: 93
Be aware that any commands sent to a browser are only suggestions.

Someone could configure their browser to always download a PDF, and there is nothing you can do about that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Open pdf from Explorer
 
Similar Threads
Java and Applet
Drag&Drop to open a new file in Eclipse IDE
Viewing a file using default application associated with it
Generated PDF download from Tomcat
how to download or view the "Excel FILE "i n IE browser