Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to open new browser instance for opening a xls in Secure Mode  RSS feed

Srilakshmi Munukutla
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to open a excel through the Java code in struts Framework.
The Piece of code I am using for this is:
StringBuffer sbContentDisp = new StringBuffer();
response.setHeader(HEADER_CONTENT_DISPOSITION_TAG, sbContentDisp.toString());
ServletOutputStream sosStream = response.getOutputStream();

I am using Internet Explorer for opening the new xls in new Browser of Internet Explorer. But when the page is opening in the new Browser, I am getting the Exception "The page cannot be opened" since the Checkbox in the browser properties "Do not save encrypted pages to disk". Hence this is not being downloaded. Can anyone tell me how to avoid this since I have seen internet webpages downloading though this is checked in my browser.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!