Iframe Not Showing Object From Struts Action Class
Solution 1:
Ah, you're using Struts. Then I recommend to look for real Struts file download example here.
However, you're also dependent on the client (webbrowser) used if it supports opening a MS Word document inline. I have never seen nor tried it, but think (and won't be surprised if) the support is limited to MSIE. Better use PDF instead, there is very wide webbrowser support to display it inline. You can use iText or OOo to convert DOC to PDF.
Or if it is the intent that the client is needs to be able to edit the document and save back to the server, then opening it inline would make no sense and it would only be more confusing for the client, because there's no way to "save" the very same document on the server side other than saving it to the local disk file sytem and then manually uploading to the server side again.
Post a Comment for "Iframe Not Showing Object From Struts Action Class"