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...
Ping & DNS - updated with new look and Ping home screen widget
Joined: Jan 30, 2008
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
Joined: Mar 22, 2005
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.