I have to check a condition in struts tag and enable or disable the field as follows:
<c:when test="${multipleCase=='true'}">
<html:text property="${row.dataElementJavaName}"
maxlength="${row.dataElementSize}"
size="60"
value="${row.dataElementValue}"
onkeyup="javascript:enableSave()"
onkeypress="return letternumber(event,'c')"
<c:if test="${model.readonlyStatus=='true'}">disabled</c:if>
/>
</c:when>
When I compile I get the following error:
Attribute: <c:if is not a valid attribute name
Encountered end tag </c:if> without corresponding start tag.
If i use the same in an HTML input field it works fine. What is the other option? any inputs?