Two strokes to resolve the exception _cannot find any information the issue of ' xxx ' in a bean of type ' xxx '

Source: Internet
Author: User
Tags uppercase letter

The first trick

In the Java Web project development, I encountered the following exception:

Cannot find any information the property ' xxx ' in a bean of type ' xxx '

This is in JavaBean: This is the JSP page that displays the results:The workaround is to:to change the Setclassranking_she method in JavaBean to Setclassranking_she, it is safe to keep an uppercase letter.

The second trick

the ' xxx ' in a bean of type ' xxx ' pondering this sentence!


For example: The property parameter is a user, and the variable in the Java program of JavaBean is user.

If the property of the user into user, but in fact the Get/set method of the property is still unchanged, that is, as long as the Get/set method is not changed, whether the user or user, in the foreground JSP page is actually the same, so that the front page does not need any change, The case of the head letter of the variable is not the fatal cause of this exception. All you can do to circumvent this exception is to use a different trick. This problem is not caused by the way the JSP page embeds Java code (<%=us.getuser ()%>), Because this is the way the system prompts to generate, this problem will be avoided at this time.

Two strokes to resolve the exception _cannot find any information the issue of ' xxx ' in a bean of type ' xxx '

Related Article

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.