When the form attribute is assigned a value on the JSP page, it is reported that the attribute is null or not an object.

Source: Internet
Author: User
In struts, when a JSP operation assigns a value to a form attribute on the page, the page prompts ** form. ** property. the value is null or not an object, but the object is defined in form. Why is this happening? It is because you did not place the property displayed on the page <HTML: in the form/> label range, the solution is to add <HTML: hidden property = "attribute with error"/> In the <form/> range.

Note that when the record is dynamically printed in the <logic: iteator/> label for batch processing, an attribute that records the number of all records of a user.
<Input type = "hidden" name = "delpscodearray" value = "<Bean: write name = 'ivcipsevo 'property = 'pscode'/>"/>

Note: Only HTML tags can be used, but not <HTML: hidden/> tags.

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.