Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IE unable to download pdf over SSL (Struts 2)

 
lekurwale amol
Ranch Hand
Posts: 55
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic