<action name="myJasperTest" class="com.focus.web.action.asset.AssetAction" method="setData">
<result name="success" type="jasper">
<param name="location">reports/check_list/Check_List.jasper</param>
<param name="connection">connection</param>
<param name="dataSource">myList</param>
<param name="format">HTML</param>
</result>
</action>
This is my struts action for displaying the jasper report.
I am using a embed SQL in jasper report. So then I will have to set connection param.
Since I am using Spring in project I did auto-wired to data-source and returned a connection from my respective action class and what should be the value for dataSource?
I am not having any list need to send report from action class and if I don't mention the dataSource it says dataSource is not defined.