Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javascript

 
Vicky Mohan
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have issues in providing the option to user to open / save dialog box .

I generate a Excel file through JReports and then redirect to a JSP page.

After displaying the contents of the JSP, i need to give the User the Option to open / save the file i generated.

I have the URL to the file in my JSP.

DO let me know if i can do this through Java Script.

Thanks in advance for your help.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IE only has
window.execCommand("SaveAs", true, "filename");
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic