Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
thambi durai
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...
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • 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: 42968
73
  • 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.
 
raghu tammina
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic