HTTP status 404-no result defined for Action Solution

Source: Internet
Author: User

When logging on to the struts2 + hibernate environment, the following error occurs: HTTP status 404-no result defined for action and result input.

 

Google <package name = "default" extends = "struts-Default" namespace = "/"> lacks namespace = "/" in struts. xml "/".

 

Related solutions:

No result defined for action and result input errors are common. They are the default views when no configuration error occurs. If such errors occur, you can check the following aspects:

1. Whether there are cognominal controls in the page, that is, controls in the page or hidden fields with the same name, and they are referenced in the action. It is particularly common to place controls in <s: iterator>.
2. Check whether the return view exists in the configuration file. We recommend that you search for the file after opening it. Sometimes the name is long and English letters are messy.
3. Whether the page return value is consistent with that defined in action, and whether the return value produces more inexplicable things
4. Try to set the default value for the page's null value
5. Add the namespace attribute to the package (namespace = "/")

For reference only!

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.