ReportWriter classes
The com.ibm.as400.util.reportwriter package provides classes that enable you to
use your iSeries to more easily access and format data from an XML source file
or data produced by servlets or JavaServer Pages(TM). The reportwriter
package is a convenient way to name three different but related packages:
These packages
include a variety of classes that allow you to format XML data streams and generate
reports in those formats. Make sure you have the necessary jar files in your CLASSPATH.
For more information about the reportwriter jar files, see Jar
files.
Context classes (in the pclwriter and pdfwriter
packages) define methods that the ReportProcessor classes need to render XML
and JSP data in the chosen format:
- Use PCLContext in combination with a ReportWriter class to generate a report
in the Hewlett Packard Printer Control Language (PCL) format.
- Use PDFContext in combination with a ReportWriter class to generate a report
in the Adobe Portable Document Format (PDF).
ReportProcessor classes (in the processor package) enable you to generate formatted
reports from information your application gathers from XML source data, Java servlets,
and JavaServer Pages (JSPs).
- Use the JSPReportProcessor class
to retrieve data from servlets and JSP pages to produce reports in the available
formats (contexts).
- Use the XSLReportProcessor class
to process your XML data with XSL stylesheets to produce reports in the available
formats (contexts).