An exception in struts2: No result defined for action XXX and result input, struts2defined
When using struts2, my colleagues encountered two problems:
1. No result defined for action XXX and result input;
2. The i18n of jQuery is always displayed in English in front-end js;
The key is that most browsers are normal. This problem occurs only in browsers on some computers.
A lot of information is displayed on the internet because the data type submitted by the front-end form does not match the field type in the background action. However, check that the field type in the background action is Date, except that the String type is Date, no int or so. This is strange. So we adopted a debugging strategy that gradually reduced the scope, gradually reduced the field, and finally located the Date type. However, the fields submitted by the front-end are also correct. Finally, after investigation, it was found that the browser language was a problem, because the browser languages of these hosts were "English ". Looking back, I checked the Struts2 default log converter DateConverter (specifically XWork) and found that this converter is related to Locale, that is, it is related to the region and language, as for its source code, you can analyze it later.
This problem has been around for an hour. It is recorded here for your reference. Do not waste time here.