I have a problem while converting the spring check box tag to struts...
I have checkbox tag written in spring which i need to convert it into struts using the values coming from database into the pojo the check box shuld be enabled and disabled according to that..
Following is the code fragment on checkbox in spring:
<c:forEach var="menuList" items="${roleMenuActionMappingBean.menuList}" varStatus="status">
<form:checkbox path="menuList[${status.index}].active" id="a_${menuList.getMenuKey()}" value="${menuList.getMenuKey()}"/>
<form:hidden path="menuList[${status.index}].menuKey" value="${menuList.getMenuKey()}"/>
And also what is this:-
menuList[${status.index}]
<c:choose>
<c:when test="${menuList.getViewCheckBoxDisabled().equals('true')}">
<p><form:checkbox path="menuList[${status.index}].viewCheckBox" id="v_${menuList.getMenuKey()}" value="${menuList.getMenuKey()}"/></p>
</c:when>
<c:otherwise>
<p><form:checkbox path="menuList[${status.index}].viewCheckBox" id="v_${menuList.getMenuKey()}" value="${menuList.getMenuKey()}" disabled="true"/></p>
</c:otherwise>
</c:choose>