[Struts2] No result defined for action... and result input & Invalid field value for field...

Source: Internet
Author: User
"No result defined for action... and result input "error occurs generally when the Struts2 interceptor encounters a problem, Struts2 will jump to the view where result is input, however, the input result is not configured for this Action in the configuration file. You can create a Jsp file with the following content and jump to the file when the result is input in the configuration file. The cause of the error is displayed.
<Div style = "color: red"> <s: fielderror/> </div>


If the error cause displayed in Jsp is "Invalid field value for field...", it indicates that the ParametersInterceptor of Struts2 encountered an error during type conversion. For example, the time format is incorrect, the Post method is not used when the form is submitted, or "enctype =" multipart/form-data "is not added "". If you cannot find the cause of the error, you can try breakpoint debugging in the doIntercept method of ParametersInterceptor to view the type of the attribute in parameters of ActionContext ac.

[Struts2] No result defined for action... and result input & Invalid field value for field...

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.