Posts Tagged ‘jasper struts2 plugin’

Jasper Report, Struts 2, iReport and Maven

May 16, 2011

Step 1: Adding POM Dependency


Step 2: Design the “jrxml” file using iReport. You can also manually design this “jrxml”

Step 3: Struts.xml ,br/>




In Struts.xml result “type” must be jasper. “location” means where the compiled jrxmlfile will be present to
generate the report param “format” is the format in which the user is trying to export it can be PDF,XLS,CSV etc.
“datasource” as “objectReportList” the object list fed to jasper report from which the data is populated this
is present inside the action class. For example of you are trying to export “Person” details the
datasource will be “personList” this is fetched from database in Action class.