HTTP Status 404 - No result defined for action com.csdhsm.struts.action.LoginAction and result error

Posted 韩思明

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HTTP Status 404 - No result defined for action com.csdhsm.struts.action.LoginAction and result error相关的知识,希望对你有一定的参考价值。

智商拙计的问题,没有找到为类LoginAction和error找到定义,然后重新去struts.xml去看,我类个去,我居然把result写成了ERROR

<result name="ERROR">/WEB-INF/content/error.jsp</result>

再看看Action类的源代码

    /**
     * The action execution was a failure.
     * Show an error view, possibly asking the
     * user to retry entering data.
     */
    public static final String ERROR = "error";

把ERROR改回成error,OK,问题解决。

以上是关于HTTP Status 404 - No result defined for action com.csdhsm.struts.action.LoginAction and result error的主要内容,如果未能解决你的问题,请参考以下文章

s2h-HTTP Status 404 - No result defined for action and result input错误解决

HTTP Status 404 - No result defined for action com.csdhsm.struts.action.LoginAction and result error

HTTP Status 404 - No result defined for action com.ouyang.action.GreetingAction and result success 错

HTTP Status 404 - There is no Action mapped for namespace [/] and action name [product-save] associa

TOMCAT报错:HTTP Status 404 -

Jsp——http status 404 问题