Jsp c:什么时候不进行评估
我有以下表单片段:Jsp c:什么时候不进行评估,jsp,Jsp,我有以下表单片段: <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:choos
<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>
办公室名称${isInternational}
我总是可以获得officename${isInternational}
来打印适当的值,但不管启用了什么表单字段。谢谢
<>编辑:<代码>禁用=“禁用”也不起作用< <代码> < /p> < p>如果您使用Spring考虑,标签属性可能不同
readonly(false/true)
HTML Optional Attribute. Setting the value of this attribute to 'true' (without the quotes) will disable the HTML element.
我的意思是这些值必须为真或假,请阅读上面的链接。您使用的是struts标签还是spring标签支持?