In the previous example, we used the<detail>
element of the JRXML report template to generate a report displaying some static text. The<detail>
element is used to display the main section of the report. However, JRXML templates can contain many other elements that allow us to display secondary data on the report,
or allow us to do some other tasks like importing Java packages, or setting the report font. Unless stated otherwise, each element can be used any number of times in the template. The following sections outline all the sub-elements of the<jasperReport>
root element.
This element is used to put arbitrary information in the report template.
<property name="someproperty" value="somevalue"/>
Properties can be retrieved by a Java application loading the report by invoking the JasperReport.getProperty()
method.
A JRXML template can contain zero or more<property>
elements.