0
時,我有以下表單代碼:C:是不是正在評估
<div class="form-group">
<form:label class="pull-left" path="officeName">Office Name ${isInternational}</form:label>
<form:errors path="officeName" class="error pull-left"></form:errors>
<c:choose>
<c:when test="${isInternational}">
<form:input path="officeName" type="text" class="form-control" id="officeName" placeholder="Enter Office Name"></form:input>
</c:when>
<c:otherwise>
<form:input path="officeName" type="text" class="form-control" id="officeName" placeholder="Enter Office Name" readonly="readonly" ></form:input>
</c:otherwise>
</c:choose>
我總是可以得到Office Name ${isInternational}
打印相應的值,但無論形式字段啓用的。謝謝。
編輯:disabled="disabled" also does not work
你使用struts標籤或彈簧標籤支持? – Koitoer
<%@ taglib prefix =「c」uri =「http://java.sun.com/jsp/jstl/core」%> –