I found an open source package at the following site that generates PDF files : http://www.dot.state.oh.us/javapdf/ I wrote a Servlet that displays a jsp the first time it is activated and a PDF if a button is pressed on this jsp using the PdfPage class in the above package. The Servlet Code follows.
I am quite new to JSP development. What I am trying to do, is generate the PDF in a servlet with the result of the application into a String and this string can go into the Session for the JSP to retrieve . I want to display an HTML page with an informative message and an PDF icon that the user can click on to display/save the PDF page. I hope this is a better description of what I want to do.
I am working on a project that accept an aplication. Depending on if the application was accepted or not by the processing servlet, I want to display a new page that includes an link to a PDF. I do not want to save the PDF on the server but push it through to the client's machine. Does anybody know how I can do this from within a JSP.