| Issue 310: | Export to Excel fails in secure pages (HTTPS) | |
| 2 people starred this issue and may be notified of changes. | Back to list |
Hello, We have been using Jmesa for a while on our PROD server. Recently we moved to https with SSL in our server. Starting then, the export to excel doesnt work. Says : IE could not find the url. I found something similar to this issue in https://code.google.com/p/jmesa/issues/detail?id=182&can=1&q=Export%20to%20PDF%20fails%20in%20secure%20pages%20(HTTPS) Any help will be appreciated! Thanks
Mar 30, 2011
#1
shrividh...@gmail.com
Mar 30, 2011
You can see the header response settings in the AbstractViewExporter class.
public void responseHeaders(HttpServletResponse response)
throws Exception {
response.setContentType(getContextType());
String encoding = coreContext.getPreference(ENCODING);
if (encoding == null) {
encoding = Charset.defaultCharset().name();
}
String fn = new String(fileName.getBytes(encoding), encoding);
response.setHeader("Content-Disposition", "attachment;filename=\"" + fn + "\"");
response.setHeader("Cache-Control", "must-revalidate, post-check=0, pre-check=0");
response.setHeader("Pragma", "public");
response.setDateHeader("Expires", (System.currentTimeMillis() + 1000));
}
I wish there was more that I could say...I have not had to export with https yet and have not had the issue.
|