jsp标签if的用法
c:if是JSTL中的一个标签,test是c:if标签的一个attribute,必填项,是if的判断内容,
其余的属性你可以去看看jstl的文档,都是可选择性填入的.下面帮你给个例子吧!希望能够帮助你,谢谢
例子
<c:if test="${1<2}">
<c:out value="1<2"/>
</c:if>
<c:if test="${1>2}">
<c:out value="1>2"/>
</c:if>
例子
<c:if test="${1<2}">
<c:out value="1<2"/>
</c:if>
<c:if test="${1>2}">
<c:out value="1>2"/>
</c:if>