且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

没有为名为'success'的'dynamic-jasper'类型定义结果类型

更新时间:2022-11-05 23:00:15

将此配置添加到您的包中

Add this configuration to your package

<result-types>
    <result-type name="dynamicJasper" class="ar.com.fdvs.dj.webwork.DJResult"/>
</result-types>

<action name="DownloadSizePdf" class="iland.work.SizesAction" method="fetchDJ">
    <result name="success" type="dynamicJasper">
        <param name="dynamicReport">dr</param>
        <param name="dataSource">sizeList</param>
        <param name="documentName">Dynamic Report generated with struts 2</param>
        <param name="parameters">params</param>
        <param name="format">PDF</param>
        <param name="layoutManager">classic</param>
    </result>
</action>






ActionSupport class位于包名称 com.opensymphony.xwork2 下。从Struts2使用的插件配置中发生错误,这与您使用的Struts版本不兼容。


The ActionSupport class is under the package name com.opensymphony.xwork2. The error is occurred from the configuration of the plugin you use with Struts2 which is incompatible to the version of Struts you use.