Title: RE: [iText-questions] Jtable creation on servlet

If you can't have a graphic environment or use headless mode you can't use a JTable. There's not much to think about. You need to send the data in some other way and render the pdf using a Table or PdfPTable.

Best Regards,
Paulo Soares

    -----Original Message-----
    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] On Behalf Of Matt Mendez

    Sent:   Tuesday, January 13, 2004 23:31
    To:     [EMAIL PROTECTED]
    Subject:        [iText-questions] Jtable creation on servlet

    Hello,



    I've spent some time working on a solution to my problem, but I'm completely

    out of ideas.  I have a servlet that takes a JTable as input and creates a PDF

    with the Jtable in it.  I've managed to handle all the details of that

    (sizing, etc, etc).



    However, I'm hosted on an Linux box that will not allow me to create a JFrame

    on the servlet (I get a headless exception, because there's not Win system on

    the box to render the JFrame).  So, since I can't create the JFrame, it just

    prints an empty page when I try to print the table.



    I don't think there's a good solution to this, because what I've read suggests

    no good ideas (3 typical bad ideas involving setting headless mode, using

    something called pja, and so on).



    I have a distributed application that has an applet and servlet architecture. 

    I COULD put the entire iText library on the client side but that sucks.  I

    suppose I could try to dismantle it and just compile the pieces I need, but

    that seems like a bad idea, and I'm not sure how much I could actually strip

    from the 600k library (imagine it's fairly connected).



    Open to any suggestions, help appreciated,

    Matt



    -------------------------------------------------------
    This SF.net email is sponsored by: Perforce Software.
    Perforce is the Fast Software Configuration Management System offering
    advanced branching capabilities and atomic changes on 50+ platforms.
    Free Eval! http://www.perforce.com/perforce/loadprog.html
    _______________________________________________
    iText-questions mailing list
    [EMAIL PROTECTED]
    https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to