struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wesley Wannemacher" <>
Subject RE: [S2] Design Advice Needed
Date Thu, 02 Aug 2007 12:35:50 GMT
Having used FOP briefly, I would add only one thing. It is generally
considered a good practice to generate traditional XML first, then
transform your data to XSLFO using a transform (pardon me if I am
getting the terms wrong). Basically, create your XML data, then have an
XSL file that transforms your data to FO, then use FOP to transform it
into a PDF. 

I saw a few responses that seem to indicate you may choose Jasper, which
is likely a better idea anyways.


-----Original Message-----
From: Hoying, Ken [] 
Sent: Thursday, August 02, 2007 7:40 AM
Subject: [S2] Design Advice Needed

I could use some advice from some folks with more experience and
knowledge of Struts2 than I to assist me in determining the correct way
(or lay out some viable options) to design a solution for the following

We need to generate a PDF report real time based on data in a database
that is available for download.  What we believe that we would like to
do is utilize FOP ( and use a JSP
page to actually generate the formatting objects and then run the
formatting objects through the FOP processor to generate and stream the
PDF back to the user.  

However, we are not real sure how to implement this in Struts2.  How do
we invoke the JSP page and then get access to the results?  Do we just
use the stream result type and then use a http call to the JSP as the
input source?  This would seem like it would not be optimal from a
performance standpoint, as we are making another http call to get the
formatting objects from the jsp.  It also adds the complexity of passing
security credentials in the call.  Or do we need to somehow create or
own result type and if so how do we get those JSP results?  I have not
really found any good documentation or example on writing your own
result types.

Thanks in advance!

***Note:The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify the Sender immediately by replying
to the message and deleting it from your computer. Thank you. Premier

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message