With a long time of the foreach tag, today to help colleagues debug program see the following exception, the first feeling should be javabean inside the property and page property inconsistency caused, repeatedly check, confirm the attribute no problem, no way, really can't see, had to write a foreach, The same list, the same attribute, did not report any exception, and then compare found that the error program items= "${gettestmodule}" in the $ sign before a space, the problem is so solved, suddenly no words in ...
[Show] javax.el.PropertyNotFoundException: ' Newsline ' is a unknown bean property
of ' java.lang.String '
<c:foreach items= "${gettestmodule}" var= "list" varstatus= "rowcounter" begin= ' 0 ' step= ' 1 ' end= ' ><li style= "Color:blue;" ><a href= "#" target= "_blank" >${list.newsLine}</a></li></c:forEach>
<c:foreach items= "${gettestmodule}" var= "list" varstatus= "rowcounter" begin= ' 0 ' step= ' 1 ' end= ' ><li style= "Color:blue;" ><a href= "#" target= "_blank" >${list.newsLine}</a></li></c:forEach>
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Javax.el.PropertyNotFoundException: ' Newsline ' is a unknown bean property ...