Book Image

JDBC 4.0 and Oracle JDeveloper for J2EE Development

Book Image

JDBC 4.0 and Oracle JDeveloper for J2EE Development

Overview of this book

Table of Contents (20 chapters)
JDBC 4.0 and Oracle JDeveloper for J2EE Development
Credits
About the Author
About the Reviewer
Preface

Generating a PDF Report


We will use the JasperReports classes and interfaces to generate a PDF file from the catalog.xml file. Add an XML file to the JasperReports project with File | New. In the New Gallery window, select General | XML in the Categories listed and XML Document in the Items listed. Click on the OK button. Specify a File Name, catalog.xml, in the Create XML File window and click on the OK button.

An XML document is added to the JasperReports project. Copy catalog.xml listing from the previous section to the XML document, catalog.xml. Save catalog.xml to the C:/JasperReports directory with File | Save As. Create a JSP to generate a JasperReports report. Right-click on the JasperReports project node and select New. In the New Gallery window, select Web Tier | JSP in the Categories listed and select JSP in the Items listed. Click on the OK button. In the Create JSP Wizard, click on Next. In the Web Application window, select Servlet 2.4/JSP 2.0 and click on Next. In the JSP...