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 '