RE: struts and iText

2004-08-03 Thread Jirole, Amar
This is how we are doing it : We have put in our main page following snippet This "exportToPdf" action returns a response with which has pdf content and following contenttype "application/pdf". Depending whether your PDF is set to open documents inside browser or open a new instance it will di

RE: struts and iText

2004-08-03 Thread Frank Zammetti
.printStackTrace(); } return null; } // End process() } Hope that helps, if you go this route. Frank W. Zammetti Chief Software Architect Omnytex Technologies www.omnytex.com From: "Jesse Alexander (KXT)" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <

RE: struts and iText

2004-08-03 Thread Buland Altaf
Hi There, I agree with the strategies Alexender told. I also append some code to open a new window just ease your work. --- function popup(mylink, windowname) { if (! window.focus)return true; var href;

RE: struts and iText

2004-08-03 Thread Jesse Alexander (KXT)
Well,... If you already have the PDF generated, why not directly write it to the response(and in this way to the browser)? To fulfill your use case as described. Your action generates the PDF and caches it somewhere. Then it will forward to the JSP-File containing the message and the link. Thi

Re: struts and iText

2004-08-03 Thread Vic Cekvenich
Struts action execute gives you a request/response, so you can just pretend that it's a servlet, set the type and stream anything you want. .V Otto, Frank wrote: Hi, I have generated a pdf with iText. In my action class I want to write it in the response object. The result should be a jsp-pag