An exception in struts2: No result defined for action XXX and result input, struts2defined

Source: Internet
Author: User

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.

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.