• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open a pdf using Ajax in jsp

 
Viidhya Kishore
Ranch Hand
Posts: 99
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I am posting html of a page from jsp and converting it to pdf at the server.
I would like to now open the file in a new window in Jsp. I have the fileName and the directory where the file resides in the jsp.

Any suggestions appreciated.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64181
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not with Ajax, that's for sure.

You need to stream the PDF to the browser in its own response with the correct response type.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic