No result defined for action and result input

Source: Internet
Author: User

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

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.