Webwork actually integrates with Jasper Reports through the JasperReportsResult result-type, we extended this class to support DynamicJasper also.
Firt you have to register the dynamic-jasper result-type in you xwork.xml like this
<result-types>
...
<result-type name="dynamic-jasper" class="ar.com.fdvs.dj.webwork.DJResult"/>
...
</result-types>
Later in you action definition, the configuration
<action name="myAcion" class="myActionClass" method="myMethod">
...
<result name="success" type="dynamic-jasper">
<param name="dynamicReport">myDynamicReport</param>
<param name="dataSource">datasource</param>
<param name="layoutManager">classic</param>
<param name="parameters">params</param>
<param name="documentName">The_final_name_of_the_file</param>
<param name="contentDisposition">application/download</param>
<param name="format">PDF</param>
</result>
</action>
If the type you need is not here (e.g: XML), the use JRDataSource and make sure your Action provides the proper implementation
Other possible values are:
| NOTE
: Available parameters will be: (in the following order) 1.- Action's parameters map (if defined in webwork's action result) 2.- Action's accessible properties |