Javax.el.PropertyNotFoundException:Property ' key ' not found on type java.lang.String

Source: Internet
Author: User

The error occurred, I collected are:

1, do not have this field

2, use the collection storage, and directly with the collection call, namely: (Collection. Field name)

3, with the label, did not write a label, directly on the collection name, call

The above situations may be a more general situation that may occur, and the most likely scenario for this error;

But I personally encountered this error is another situation, has been the other aspects of the problem, and finally found that I used a multi-layer tag traversal,

Use multiple layers of labels to traverse this without fault, the wrong is to take the name does not note:

<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>
Predecessor node
</td>
<td>

&nbsp;
</td>
<td>
Fallback node
</td>
</tr>
<tr>
&LT;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>
&nbsp;
</td>
&LT;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= "&gt;"/>
</p>
<p style= "margin-bottom:5px;" >
<input type= "button"
onclick= "Moveall (This.form.leadnode,this.form.backnode);"
class= "Buttonpro" style= ' width:30px '
Value= "&gt;&gt;"/>
</p>
<p style= "margin-bottom:5px;" >
<input type= "button" onclick= "Removeme ();"
class= "Buttonpro" style= ' width:30px ' value= "&lt;"/>
</p>
<p>
<input type= "button" onclick= "RemoveAll (' 0 ');"
class= "Buttonpro" style= ' width:30px ' value= "&lt;&lt;"/>
</p>

</td>
&LT;TD width= "45%" >
<select name= "Backnode" id= "Backnode"
Ondblclick= "RemoveChild (This)" size= "ten" multiple= "multiple"
style= "width:100%" >
<s:iterator value= "Designvo.backnodes" status= "status"
Var= "Item" > above red is the root cause of the error, if you call the item will also be an error: Javax.el.PropertyNotFoundException:Property ' key ' not found on type Java.lang.String


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.