__GYT 2015-01-14 05:42 采纳率: 0%
浏览 1696

struts框架: no result defined for action错误

只要是程序报错,不管是什么错误,都会报这个错误,不知道为什么?

 <struts>

    <constant name="struts.enable.DynamicMethodInvocation" value="false" />


    <constant name="struts.i18n.encoding" value="UTF-8" />
    <constant name="struts.locale" value="UTF-8" />


    <constant name="struts.custom.i18n.resources" value="message" />
    <constant name="struts.convention." value=""></constant>

    <constant name="struts.action.extension" value="action" />


    <constant name="struts.configuration.xml.reload" value="true" />


    <constant name="struts.devMode" value="true" />


    <constant name="struts.objectFactory.spring.autoWire" value="type"></constant>
    <package name="claimVoucher" namespace="/jsp/claim" extends="struts-default">
        <interceptors>
            <interceptor-stack name="defaultStack"> 
                <interceptor-ref name="alias" />
                <interceptor-ref name="servletConfig" />
                <interceptor-ref name="i18n" />
                <interceptor-ref name="prepare" />
                <interceptor-ref name="chain" />
                <interceptor-ref name="scopedModelDriven" />
                <interceptor-ref name="modelDriven" />
                <interceptor-ref name="fileUpload" />
                <interceptor-ref name="checkbox" />
                <interceptor-ref name="multiselect" />
                <interceptor-ref name="staticParams" />
                <interceptor-ref name="actionMappingParams" />
                <interceptor-ref name="params">
                    <param name="excludeParams">dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,parameters\...*</param>
                </interceptor-ref>
                <interceptor-ref name="conversionError" />
                <interceptor-ref name="validation">
                    <param name="excludeMethods">input,back,cancel,browse</param>
                </interceptor-ref>
                <interceptor-ref name="workflow">
                    <param name="excludeMethods">input,back,cancel,browse</param>
                </interceptor-ref>
                <interceptor-ref name="debugging" />
            </interceptor-stack>
        </interceptors>
        <!-- 导入上面写的拦截器栈 -->
        <default-interceptor-ref name="defaultStack" />
        <global-results>
            <result name="login">login.jsp</result>
            <!-- <result name="error">fail.jsp</result> -->
        </global-results>
        <global-exception-mappings>
            <exception-mapping exception="java.lang.Exception"
                result="error" />
        </global-exception-mappings>
        <action name="defaultAction">
            <result>error.jsp</result>
        </action>

        <action name="claimVoucher_*" method="{1}"
            class="action.ClaimVoucherAction">
            <result name="list">claim_voucher_list.jsp</result>
            <result name="view">claim_voucher_view.jsp</result>
            <result name="toAdd">claim_voucher_edit.jsp</result>
            <result name="save">claim_voucher_view.jsp</result>
            <result name="toUpdate">claim_voucher_update.jsp</result>
            <result name="update">claim_voucher_view.jsp</result>
        </action>
    </package>
</struts>    
  • 写回答

4条回答 默认 最新

  • 飞翔_JAVA 2015-01-14 05:48
    关注

    no result defined for action: result里没有找到吧,看看是不是大小写,字符多少,打错了。

    评论

报告相同问题?

悬赏问题

  • ¥30 求给定范围的全体素数p的(p-2)的连乘积
  • ¥15 VFP如何使用阿里TTS实现文字转语音?
  • ¥100 需要跳转番茄畅听app的adb命令
  • ¥50 寻找一位有逆向游戏盾sdk 应用程序经验的技术
  • ¥15 请问有用MZmine处理 “Waters SYNAPT G2-Si QTOF质谱仪在MSE模式下采集的非靶向数据” 的分析教程吗
  • ¥50 opencv4nodejs 如何安装
  • ¥15 adb push异常 adb: error: 1409-byte write failed: Invalid argument
  • ¥15 nginx反向代理获取ip,java获取真实ip
  • ¥15 eda:门禁系统设计
  • ¥50 如何使用js去调用vscode-js-debugger的方法去调试网页