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!