Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to download or view the "Excel FILE "i n IE browser

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP page passes the user inputs to JAVA page (using POST method) which queries to the database and generate an Excel file and returns the link for that file. I am displaying that link in JSP page ("Your file is successfully saved. Click here to download or view your file).

Now what I want is when the user clicks on the link, open/save dialog will appear which give flexibility to the user to download or view the "Excel FILE "in same JSP page.

this is work in mozilla firefox but not working in Internet explorer...

can anybody help...
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does "not working in Internet explorer" mean? Tell us what exactly is happening.

This FAQ page may help: JspAndExcel
 
thambi durai
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to download Excel FILE from JSP page.
the excel file path is getting from DB and < a href <%=filePath%> >...when i clicking the link "open with /save to disk "dialog box will not appear in the Internet explorer...

but "open with /save to disk " dialog box will appear mozilla firefox
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's browser behavior that you can do nothing about on the server side. The user may have set the checkbox "don't prompt me what to do with this type of file, just save it" before. After you do that, you're not prompted again.
 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got similar exception but i have problem with firefox browser while downloading the file it comes with .jsp extension in IE it is working fine

can any one suggest me how to solve this issue?
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic