File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

open pdf inside browser

 
vivien siu
Ranch Hand
Posts: 143
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys this is my code. I keep on having a dialog box popped up to ask me whether I want to save or open it.

I want the pdf file to open inside my current browser instead. How can I do this?
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't a JSP issue--it's a browser issue. You need to have your browser configured correctly to automatically open the PDF file in the same window as the webpage instead of giving you the dialog box. As far as your code is concerned, it's correct.
 
Sandeep Singh Kunwar
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Acrobat reader is installed i hope on user machine!!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic