File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes IE unable to download pdf over SSL (Struts 2) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "IE unable to download pdf over SSL (Struts 2)" Watch "IE unable to download pdf over SSL (Struts 2)" New topic

IE unable to download pdf over SSL (Struts 2)

lekurwale amol
Ranch Hand

Joined: Apr 22, 2010
Posts: 55
Application is based on Struts 2 framework, where download pdf is using below tags:

<result name="success" type="stream">
<param name="contentType">${reportType}</param>
<param name="inputName">inStream</param>
<param name="contentDisposition">attachment;filename="${fileName}"</param>
<param name="bufferSize">8192</param>

This works fine on HTTP for both browsers IE and Firefox, but when using same application on HTTPS, IE gives error
that IE cannot find the file and cannot download etc..
I browsed on Microsoft's site, and below is what was mentioned :
"This issue occurs if the server sends a "Cache-control:no-store" header or sends a "Cache-control:no-cache" header."

Question 1 : How to include the above directives in my result described above.

Few gave a solution of modifying some registry etc. But this is not possible as every client browser will be required to do it.

Question 2 : Any other solution to avoid this issue.


pavani akella

Joined: Feb 16, 2010
Posts: 3

Have you find any solution to this?
I implemented interceptor specified in apcahe struts documentation like this

and the struts.xml is as follows

But still I am not able to make it work.
If you got any solution please post it.

I agree. Here's the link:
subject: IE unable to download pdf over SSL (Struts 2)
It's not a secret anymore!