Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Excel download problem from JSP on https protocol

843835Mar 21 2002 — edited Jan 12 2010
Hello 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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 9 2010
Added on Mar 21 2002
37 comments
3,881 views