出现次错误,本人归集有: java
一、确实没有该字段 ui
二、用了集合存储,而直接用集合调用,即:(集合.字段名) this
三、用标签时,没写标签,直接上集合名,调用 spa
以上几种状况多是可能出现的比较广泛的状况,也是出现这个错误最可能的状况; code
不过我本人遇到的这种错误是另一种状况,以前一直是其余方面的问题,最后才发现是我用到了多层的标签遍历, orm
使用多层标签遍历本无错,错就错在取名字不注意: ip
<s:iterator value="othersVo.buttonList" var="item" status="status"> <s:if test="#status.count%8 ==0"> <span> <input class="ui-custom-process-check" type="checkbox" value="${item.key }" id="${item.key }" />${item.name}<input type="hidden" value="${item.selected }" /> <br /> </span> </s:if> <s:else> <span> <input class="ui-custom-process-check" type="checkbox" value="${item.key }" id="${item.key }" />${item.name}<input type="hidden" value="${item.selected }" /> <br /> <c:if test='${item.key eq "processBack"}'> <div id="selected" class="ui-custom-process-div" name="selected"> <table width="100%" border="0" cellspacing="0" class="grid_biserial"> <tr> <td> 前置节点 </td> <td> </td> <td> 回退节点 </td> </tr> <tr> <td width="45%" > <select name="LeadNode" ondblclick="moveOver();" size="10" multiple="multiple" style="width: 100%;"> <c:forEach items="${designVo.forwardNodes}" var="item1" varStatus="status"> <option> ${item1} </option> </c:forEach> </select> </td> <td style="text-align: center;"> <p style="margin-bottom: 5px; margin-top: -20px;"> <input type="button" onclick="moveToRight(this.form.LeadNode,this.form.backNode);" class="buttonPro" style='width:30px' value=">" /> </p> <p style="margin-bottom: 5px;"> <input type="button" onclick="moveAll(this.form.LeadNode,this.form.backNode);" class="buttonPro" style='width:30px' value=">>" /> </p> <p style="margin-bottom: 5px;"> <input type="button" onclick="removeMe();" class="buttonPro" style='width:30px' value="<" /> </p> <p> <input type="button" onclick="reMoveAll('0');" class="buttonPro" style='width:30px' value="<<" /> </p> </td> <td width="45%"> <select name="backNode" id="backNode" ondblclick="removechild(this)" size="10" multiple="multiple" style="width: 100%"> <s:iterator value="designVo.backNodes" status="status" var="item">
以上第一行和最后一行中的var="item"就是出错的根源,若是都叫item也会报错:javax.el.PropertyNotFoundException: Property 'key' not found on type java.lang.String ci