Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 48716 invoked from network); 9 Nov 2001 16:54:28 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 9 Nov 2001 16:54:28 -0000 Received: (qmail 26398 invoked by uid 97); 9 Nov 2001 16:53:27 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 26376 invoked by uid 97); 9 Nov 2001 16:53:26 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 26360 invoked from network); 9 Nov 2001 16:53:25 -0000 Date: Fri, 9 Nov 2001 08:41:18 -0800 (PST) From: "Craig R. McClanahan" Sender: To: Tomcat Users List Subject: Re: JSP to PDF In-Reply-To: Message-ID: <20011109084010.L98004-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 9 Nov 2001, Huaxin wrote: > Date: Fri, 9 Nov 2001 09:07:49 -0700 (Mountain Standard Time) > From: Huaxin > Reply-To: Tomcat Users List > To: Tomcat Users List > Subject: Re: JSP to PDF > > Yes, I know FOP. but the problem is > > 1. I want to reuse the GUI layout in JSP rather than > writing XPATH for transforming XHTML to XSL:FO pages. that > is too time consuming. > > 2. I am using Strut, the forms are nolonger static XHTML now, > it is dynamic JSP output. I can't use html2pdf unless I can > record the dynamic output to a HTML file. > See my response from yesterday -- use a Filter and you can capture the output from *any* servlet or JSP page and convert it. All you need is a library that knows how to translate HTML into PDF. Craig > On Fri, 9 Nov 2001, Lars Nielsen Lind wrote: > > > Is it not possible to create a PDF-file from JSP? > > > > I believe I have heard something about FOP - you can get it from the Apache / Jakarta website. > > > > /Lars Nielsen Lind > > > > > > ----- Original Message ----- > > From: "Craig R. McClanahan" > > To: "Tomcat Users List" > > Sent: Friday, November 09, 2001 1:59 AM > > Subject: Re: JSP to PDF > > > > > > > > > > > > > On Thu, 8 Nov 2001, David Rault wrote: > > > > > > > Date: Thu, 8 Nov 2001 19:13:19 +0100 > > > > From: David Rault > > > > Reply-To: Tomcat Users List > > > > To: Tomcat Users List > > > > Subject: Re: JSP to PDF > > > > > > > > you can't make a pdf output from a jsp > > > > the reason is quite simple > > > > > > > > pdf is a binary format and JSPs can only generate text-based output > > > > > > > > wanna make pdf, write a servlet > > > > there must be an open source (maybe only LGPL) library to make pdfs > > > > somewhere, the name is lowagie something > > > > > > > > > > Another option would be to use a Filter (new in Servlet 2.3). If you had > > > an HTML->PDF class library available, you could pretty easily do this -- > > > either replacing the original "text/html" output, or writing a PDF copy to > > > a side file and still returning the HTML to the browser. > > > > > > > hope this helps > > > > > > > > David > > > > > > Craig McClanahan > > > > > > > > > > ----- Original Message ----- > > > > From: "Huaxin" > > > > To: "Tomcat Users List" > > > > Sent: Thursday, November 08, 2001 7:02 PM > > > > Subject: JSP to PDF > > > > > > > > > > > > > I am trying to use Strut, however, I am wondering if there > > > > > is a way to convert the OUTPUT of the JSP page to a > > > > > PDF format, so that the client side sees the PDF instead > > > > > of the translated HTML page? > > > > > > > > > > thanx a lot > > > > > > > > > > > > > > > > > > > > -- > > > > > To unsubscribe: > > > > > For additional commands: > > > > > Troubles with the list: > > > > > > > > > > > > > > > > > > > > > > -- > > > > To unsubscribe: > > > > For additional commands: > > > > Troubles with the list: > > > > > > > > > > > > > > > > > -- > > > To unsubscribe: > > > For additional commands: > > > Troubles with the list: > > > > > > > > > > > > > > > -- > > To unsubscribe: > > For additional commands: > > Troubles with the list: > > > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > > -- To unsubscribe: For additional commands: Troubles with the list: