Input set disabled, after STRUS2 submitted to the background, the background does not get the value

Source: Internet
Author: User

The page has more than one name in the same input and the background action in a property corresponding, has been curious why can be submitted to the background, but sometimes also reported this property cannot find the corresponding method (multiple name is the same as if the array is matched, so cannot find),

But my input with JS control disable, that is, a submission form, the form name of the same only one input is not disable. had been curious, and later saw the following blog: Just understand what's going on

http://bbs.csdn.net/topics/380063466

That is, input is set to disabled= "disabled" such as using struts to submit is not a value. The resulting null value. This is normal.

There is a page, the user's identity query out into the input box, the original time, the content of this box allows users to modify, the program runs no problem.

Later changed to prohibit user modification, added disabled= "disabled", the result is empty pointer.
Then, is a pass debug, only then found that there is such a problem, before really do not know!

Input set disabled, after STRUS2 submitted to the background, the background does not get the value

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.