I am trying to produce dynamic PDF documents from a JSP/Servlet (Struts)
application.

This is what I am trying to do:

1) from a servlet, generate a report bean.

2) use Castor to marshal the bean to an in-memory XML document (maybe a DOM
document?).

3) use FOP to merge the in-memory XML document with a pre-written XSL file
to produce a PDF doc.

4) send the PDF doc to browser client.

I am only starting to become familiar with the FOP and Castor APIs and I am
not sure how to accomplish steps 2 and 3.

I have successfully used Castor to marshal a bean to an XML text file.

I have also been able to produce PDF with with static XML and XSL files
from a servlet.

I would appreciate any pointers on accomplishing steps 2 and 3.

Has anybody done this?
Do you have any code samples?
Is there a better way to do this?

Thanks, Jack




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

Reply via email to