Aditya Raghu wrote:
I want to open the file inside the iframe scope, Please help me out .
I don't remember whether Firefox is able to embed MS Word inside an iframe, maybe this is possible only in IE.
OCJP 6 (93%)
Joined: Aug 11, 2009
I tried in ie too, even there the file is being downloaded. Do you see any other way of passing the stream to iframe? Is there any other alternative to this?
Joined: Oct 08, 2009
I think that you're not using Struts' stream result correctly, instead of providing an InputStream and have the framework stream it to the client you're writing it directly to the servlet's output stream (is res the ServletResponse?). Take a look at the docs and fix it. Nevertheless, I don't think that this will solve your problem...