The JSPReportProcessor class enables you to create a document or report from the contents of a JavaServer Page(TM) (JSP) or Java™ servlet.
Use this class to obtain a JSP or servlet from a given URL and create a document from the contents. The JSP or servlet must provide the document data, including XSL formatting objects. You must specify the output context and the JSP input data source before you can generate any pages of the document. You can then convert the report data to a specified output data stream format.
The JSPReportProcessor class allows you to:
The following examples show how you can use the JSPReportProcessor and the PDFContext classes to generate a report. The examples include both the Java and the JSP code, which you can view by using the following links. You can also download a ZIP file that contains the example JSP, XML, and XSL source files for both the JSPReportProcessor and XSLReportProcessor examples:
For more information about JSPs, see the Java Server Pages technology Web site.