I am passing a java bean collection into a jasper report. I have several fields for this java bean defined an they are display just fine in my report.
Im wondering i
Using the keyword _THIS
in a field name or description will make it map to the bean class itself. Using the fieldDescription tag is better as it allows you to do this with multiple beans.
For example:
<field name="customBean" class="com.example.customBean">
<fieldDescription>_THIS</fieldDescription>
</field>
Then you can call methods in an expression like this:
<textFieldExpression>$F{customBean}.someMethod()</textFieldExpression>