Excel download problem from JSP on https protocol
843835Mar 21 2002 — edited Jan 12 2010Hello all,
We have a JSP file that generates a table. We want to see the table in Excel window. To achive this we added the following code at the top of our JSP.
<%
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition","attachment; filename=" + "test.xls" );
%>
This is working fine in our development and test environments.
But in our Production environment(HTTPS protocol, Websphere) we are getting following error message that is returned by Internet Explorer.
"Internet Explorer cannot download <filename.jsp> from <our website>
Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found. Please try again later"
Following are my observations:
1. Same site is working fine from Netscape
2. Same code seems to be working fine from J2EE HTTPS.
Please let me know if there is any solution to this problem
Thanks in advance
Varma