Source Code: Jasper Reports Integration

An example of a Jasper Report running from a SOFIA model and the SOFIA Jasper Report Viewer Applet/Java Web Start Application.

File name Description
com/salmonllc/examples/example17/ContactModel.java The SOFIA model used to provide data for the report.
com/salmonllc/examples/example17/ReportAppletController.java The SOFIA controller for the applet view page.
com/salmonllc/examples/example17/ReportParameterConstants.java An interface of constants that are the names of parameters passed to the viewer applet. This is a copy of com.salmonllc.jasperReports.ReportParameterConstants.java and is only here so the example will compile whether or not the Salmon Jasper packages are
com/salmonllc/examples/example17/ReportSelectionController.java The SOFIA controller for the selection criteria screen.
example17/ReportApplet.jsp The JSP view that presents the user with the report as an applet.
example17/ReportApplication.jsp The XML file created as a JSP that serves up the report as a Java Web Start Application.
example17/reportDefinition/ContactReportDef.xml The XML file definition for the Jasper Report.
example17/ReportSelections.jsp The JSP view that presents the user with a selection screen for the report.


Return to Home Page
Run the Example