There are two problems:
- you need to return a
DynamicReport
object, not anByte Array
; - the dynamicReport variable must start with a
lowercase
letter:
In Struts.xml
<param name="dynamicReport">dynamicReport</param>
In the Action
public DynamicReport getDynamicReport(){
DynamicReport dynamicReport = null;
// do all your stuff
return dynamicReport;
}