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

Source: Internet
Author: User

The problem of the IQ, did not find a definition for the class loginaction and error, and then go back to Struts.xml to see, I kind of go, I actually put the result into error

<name= "ERROR">/web-inf/content/error.jsp</  Result>

Then look at the source code of the Action class

    /**      * The action execution was a failure.     * Show An error view, possibly asking the     * user to retry entering data.      */     Public Static Final String error = "Error";

Change the error back into Error,ok and solve the problem.

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.