I am using Websphere to deploy my app. My application is Struts-JSP.
Now, I have a PDF in the form of byte stream in my Action. I want to pass this byte stream to the JSP, and have a new window popped up showing the PDF. I don't want to store it as a physical file in the server context or at the client side. Is it possible? If not, what is the best way to achieve this (showing the PDF).
Having the bytes of the PDF available in the JSP is useless to you.
Thanks for your responses. Your idea would definitely work.
But the thing is, we have ActionServlet to handle everything. That's the whole point of Struts, having just one controller. So for just one functionality (showing PDF), I am really hesitant to add one separate servlet.
Hope this helps
[Vipassana] - It is seeing the reality as it is, And not as you want it to be.!!!