Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 76003 invoked from network); 2 Aug 2007 12:08:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Aug 2007 12:08:05 -0000 Received: (qmail 81693 invoked by uid 500); 2 Aug 2007 12:07:55 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 81669 invoked by uid 500); 2 Aug 2007 12:07:55 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 81658 invoked by uid 99); 2 Aug 2007 12:07:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 05:07:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [85.214.44.140] (HELO e.nrgie.net) (85.214.44.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Aug 2007 12:07:29 +0000 Received: from [192.168.100.2] (p508A7E61.dip.t-dialin.net [80.138.126.97]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by e.nrgie.net (Postfix) with ESMTP id 9729AEFC0CB for ; Thu, 2 Aug 2007 14:33:12 +0200 (CEST) Message-ID: <46B1C901.1020702@it-neering.net> Date: Thu, 02 Aug 2007 14:07:29 +0200 From: Rene Gielen User-Agent: IceDove 1.5.0.9 (X11/20061220) MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: [S2] Design Advice Needed References: <73896C9F08D68D438FCCBA8005C671E708FF519D@C3EXCHANGE.corp.premierinc.com> In-Reply-To: <73896C9F08D68D438FCCBA8005C671E708FF519D@C3EXCHANGE.corp.premierinc.com> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org You should definitely have a look into the struts2-jasperreports-plugin - both for checking out how to write own results and evaluating if you might want to use jasper over FOP, since full s2 result support is already available for jasper. The plugin is part of the struts2 source distribution. Regards, Rene Hoying, Ken schrieb: > 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 > senario: > > 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 (http://xmlgraphics.apache.org/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 Inc. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org