J
javaguy
I have code like this:
<c:forEach items="${myOrders}" var="orders" varStatus="loop">
<tr>
<td>
<html-el:select property="${orders.myStatus}">
<html-elption value="MyValue1"/>
<html-elption value="MyValue2"/>
</html-el:select>
</td>
</tr>
</c:forEach>
There is a getMyStatus(), setMyStatus() in the myOrders collection.
When I run this code I get javax.servlet.jsp.jspException: No getter
method available for property 1 for bean under name
org.apache.struts.taglib.html.BEAN.
If I replace the html-el:select with a normal <select> then the page is
rendered OK. It also means that, for now, my page has some funky stuff
to fetch the results of that select so I'm not home free.
So, what is going on here? I've found no references in groups or
Google to this condition. Generally, whenever the groups say "forEach"
and "select", what is being talked about is using the forEach inside of
the select, and not the way I have it here.
Any understanding is greatly appreciated.
Jerome.
<c:forEach items="${myOrders}" var="orders" varStatus="loop">
<tr>
<td>
<html-el:select property="${orders.myStatus}">
<html-elption value="MyValue1"/>
<html-elption value="MyValue2"/>
</html-el:select>
</td>
</tr>
</c:forEach>
There is a getMyStatus(), setMyStatus() in the myOrders collection.
When I run this code I get javax.servlet.jsp.jspException: No getter
method available for property 1 for bean under name
org.apache.struts.taglib.html.BEAN.
If I replace the html-el:select with a normal <select> then the page is
rendered OK. It also means that, for now, my page has some funky stuff
to fetch the results of that select so I'm not home free.
So, what is going on here? I've found no references in groups or
Google to this condition. Generally, whenever the groups say "forEach"
and "select", what is being talked about is using the forEach inside of
the select, and not the way I have it here.
Any understanding is greatly appreciated.
Jerome.