aspose file tools*
The moose likes JSP and the fly likes how to download or view the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "how to download or view the "Excel FILE "i n IE browser" Watch "how to download or view the "Excel FILE "i n IE browser" New topic
Author

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

thambi durai
Greenhorn

Joined: Jan 30, 2008
Posts: 6
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
Marshal

Joined: Mar 22, 2005
Posts: 41800
    
  62
What does "not working in Internet explorer" mean? Tell us what exactly is happening.

This FAQ page may help: JspAndExcel


Ping & DNS - my free Android networking tools app
thambi durai
Greenhorn

Joined: Jan 30, 2008
Posts: 6
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
Marshal

Joined: Mar 22, 2005
Posts: 41800
    
  62
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

Joined: Jul 11, 2012
Posts: 60
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to download or view the "Excel FILE "i n IE browser