Hello,

I'm trying to set up some jasper subreports and i'm slightly confused.

I have the following view bean set up.
Code:
<bean id="investmentPlanReportView" class="org.springframework.web.servlet.view.jasperreports.JasperReportsPdfView">
	
    <property name="url" value="/WEB-INF/reports/InvestmentPlanReport.jrxml"/>
    <property name="reportDataKey" value="mainReportData"/>
		
    <property name="subReportUrls">
    		<map>
        		<entry key="trackerSubReport" value="/WEB-INF/reports/TrackerSubReport.jrxml"/>
        		<entry key="promotionsSubReport" value="/WEB-INF/reports/PromotionsSubReport.jrxml"/>
    		</map>
    </property>
		
		
    <property name="subReportDataKeys"> 
	<list>
		<value>trackerSubReportData</value> 
		<value>promotionsSubReportData</value> 
	</list>

    </property>
		
</bean>

and then in my controller I am populating the model with the appropriate collections.

My question is, how do I map the sub report data keys to the correct sub reports? I'm using iReport to build the jrxml files.

I realise that answering this will require some experience of iReport so maybe this is not the best place to ask.

regards,
Jordan.