• Post Reply Bookmark Topic Watch Topic
  • New Topic

show word document using iframe in jsp  RSS feed

 
akashkum singh
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to show word document such as java.docx file in my jsp page using iframe

<iframe src="java.docx" style="border: 1px" ></iframe>

this code is downloading the document but not displaying.
what to do.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The web app doesn't have any control over what might happen once the document is downloaded by the browser. The browser might be set to automatically save the document to disk.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has been probably more than a decade ago that Microsoft lost a $500,000,000 lawsuit over the right to embed Office documents, PDFs, and other content into web pages. That's a lot of money, even for Microsoft.

Because of this, they were forced to remove that ability from Internet Explorer.

The declared "owners" of the concept did state that other browsers would not be legally denied this ability, but most of them haven't wanted to risk it anyway.

So IE users are never going to be able to do what you want, at least until all pertinent patents have expired. And even if you do have a user base that encompasses some browser that allows it in principle, individual user settings may not.

There are 3 aspects to your problem: Technology you can control, Technology that's under someone else's control, and Legal constraints. Two out of those 3 aspects are working against you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!