During the online examination system, I found a problem: No result defined for action and result input. After being depressed for a long time, my configuration file is correct, however, I have been reporting this error for a long time. I checked some information on the Internet and finally looked at it. I felt this error was a very concealed mistake.
<S: select list = "coursesList"
Name = "classRoom. course" listValue = "courseName" listKey = "id"
Theme = "simple"
Style = "width: 150px; border: 1px solid # D7E3EE;">
</S: select>
The problem lies in the above error. In the drop-down box, the Type I defined is an object, but in the value of the drop-down box, I wrote a string type, due to a mismatch error, as a result, a return value of the input type is automatically submitted when the form is submitted. This error can be a headache for a long time.
Conclusion: When the No result defined for action and result input type is incorrect, if you are sure that your configuration file is correct, you can add <result name = "input"> to your configuration file. When you add the file, you can find that the page jumps to the interface defined by your input, you can confirm that struts2 places a return value of the input type by default. There are many reasons for this problem: for example, the type on the page is different from the type of the defined attribute, there are also path errors, and when the file is uploaded, The ENCTYPE = "multipart/form-data" and other causes are ignored.
This article is from the Coco blog, please be sure to keep this source http://zhengkeke.blog.51cto.com/6344605/1297624