I have been trying to generate a property using a list defined in the
formbean. I want to know, if i can populate an empty list while looping
through another outer list
<table width="100%" border="0" style="margin-top:5px;
margin-bottom:20px;" summary="layout">
<tbody>
<c:forEach var="parm" items="
${reportDefFormBean.reportParmList}" varStatus="status">
<c:choose>
<c:when test="${parm.controltype
== PARM_CONTROL_TYPE_CHECKBOX}">
<tr>
<td width="20%"><
c:out value="${parm.displayname}"/></td>
<td>
<html:checkbox
property="${reportDefFormBean.reportParmValueList[status.count]}" value=
"true"></html:checkbox>
</td>
</tr>
</c:when>
</c:choose>
</forEach>
</tbody>
</table>
I am trying to set the status count into the second
List(reportParmValueList), the formbean is the place both the lists reside.
Based on the control type, i have to display the corresponding displayname
and property.
I would really like some fedback and some help in this regard. I had to
refrain using Maps since i was having the same problem as Lists receiving
an error as shown below
No getter method for property component of bean
org.apache.struts.taglib.html.BEAN'
Devkanth
Systems Advisor & J2EE Developer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]