__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里没有找到吧,看看是不是大小写,字符多少,打错了。

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?