"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...