整合JFreeChart
struts.xml 配置文件中添加chart结果类型
<result-types>
<result-type name="chart" class="org.apache.struts2.dispatcher.ChartResult" />
</result-types>
整合JasperReports
struts.xml 配置文件中添加jasper结果类型
<result-types>
<result-type name="jasper" class="org.apache.struts2.views.jasperreports.JasperReportsResult"/>
</result-types>