This is how we are doing it :
We have put in our main page following snippet

<IFRAME src="<html:rewrite page='/exportToPdf.do?'"/>

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 display the pdf document in-place of the frame or will
open a new instance.

HTH
-Amar



>
>
>-----Original Message-----
>From: Otto, Frank [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 03, 2004 9:18 AM
>To: '[EMAIL PROTECTED]'
>Subject: struts and iText
>
>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-page with content "pdf generated successful" 
>and
>a link to this pdf. The pdf should be shown in a new browser window too.
>
>Has someone do this? How can I do this?
>
>
>kind regards,
>
>frank
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_________________________________________________________________
Planning a family vacation? Check out the MSN Family Travel guide! 
http://dollar.msn.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to