Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsp c:什么时候不进行评估_Jsp - Fatal编程技术网

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标签支持?