我要檢查在Struts標籤的條件,並啓用或禁用字段,如下所示:JSTL在Struts標籤
<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>
我編譯時出現以下錯誤:
Attribute: <c:if is not a valid attribute name
Encountered end tag </c:if> without corresponding start tag.
如果我在HTML輸入字段中使用它可以正常工作。另一種選擇是什麼?任何投入?
支柱的哪個版本和您使用該版本的JSTL?你還使用哪個servlet api版本? – nwaltham
你想在某些條件下設置屬性disabled = true? – invariant