Hi, create this file just like in stand-alone app in your action, and then return it by stream result, more details here: http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/StreamResult.html
Best greetings, Paweł Wielgus. 2009/12/1 hisameer <cool_sameer_fo...@yahoo.com>: > > Hello Everyone, > > I am having an issue when I try to use struts2 and itext. Well this is not > really an issue it is just my lack of knowledge.My problem is that I am able > to create a pdf using itext in stand-alone java application. But I dont know > how to create the same pdf and display it in the browser using itext. > > In my page there is a download button. When user clicks on this button an > another window should open with the generated pdf page. Please suggest me > how can I achieve this. > > I am using struts 2.1.6 and itext 2.1.7. > > Thanks for reading my post.Please post your suggestions. > > > -- > View this message in context: > http://old.nabble.com/How-to-use-IText-with-Struts2-tp26599188p26599188.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org