aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
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
Author

IE unable to download pdf over SSL (Struts 2)

lekurwale amol
Ranch Hand

Joined: Apr 22, 2010
Posts: 55
Hi,
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>
</result>

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.

Amol

pavani akella
Greenhorn

Joined: Feb 16, 2010
Posts: 3
Hi,

Have you find any solution to this?
I implemented interceptor specified in apcahe struts documentation http://struts.apache.org/2.0.14/docs/https-and-ie-issues.html 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.


Regards,
Pavani
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IE unable to download pdf over SSL (Struts 2)