⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 logic-compare.jsp

📁 structs源码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
</tr>
<tr>
    <td>int / GT</td>
    <td><c:out value="${bean.intProperty}"/></td>
    <td><c:out value="${long2}"/></td>
    <td>greaterEqual greaterThan notEqual</td>
    <td>
        <c:if test="${bean.intProperty eq long2}">
            equal
        </c:if>
        <c:if test="${bean.intProperty ge long2}">
            greaterEqual
        </c:if>
        <c:if test="${bean.intProperty gt long2}">
            greaterThan
        </c:if>
        <c:if test="${bean.intProperty le long2}">
            lessEqual
        </c:if>
        <c:if test="${bean.intProperty lt long2}">
            lessThan
        </c:if>
        <c:if test="${bean.intProperty ne long2}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>int / LT</td>
    <td><c:out value="${bean.intProperty}"/></td>
    <td><c:out value="${long3}"/></td>
    <td>lessEqual lessThan notEqual</td>
    <td>
        <c:if test="${bean.intProperty eq long3}">
            equal
        </c:if>
        <c:if test="${bean.intProperty ge long3}">
            greaterEqual
        </c:if>
        <c:if test="${bean.intProperty gt long3}">
            greaterThan
        </c:if>
        <c:if test="${bean.intProperty le long3}">
            lessEqual
        </c:if>
        <c:if test="${bean.intProperty lt long3}">
            lessThan
        </c:if>
        <c:if test="${bean.intProperty ne long3}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>long / EQ</td>
    <td><c:out value="${bean.longProperty}"/></td>
    <td><c:out value="${long1}"/></td>
    <td>equal greaterEqual lessEqual</td>
    <td>
        <c:if test="${bean.longProperty eq long1}">
            equal
        </c:if>
        <c:if test="${bean.longProperty ge long1}">
            greaterEqual
        </c:if>
        <c:if test="${bean.longProperty gt long1}">
            greaterThan
        </c:if>
        <c:if test="${bean.longProperty le long1}">
            lessEqual
        </c:if>
        <c:if test="${bean.longProperty lt long1}">
            lessThan
        </c:if>
        <c:if test="${bean.longProperty ne long1}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>long / GT</td>
    <td><c:out value="${bean.longProperty}"/></td>
    <td><c:out value="${long2}"/></td>
    <td>greaterEqual greaterThan notEqual</td>
    <td>
        <c:if test="${bean.longProperty eq long2}">
            equal
        </c:if>
        <c:if test="${bean.longProperty ge long2}">
            greaterEqual
        </c:if>
        <c:if test="${bean.longProperty gt long2}">
            greaterThan
        </c:if>
        <c:if test="${bean.longProperty le long2}">
            lessEqual
        </c:if>
        <c:if test="${bean.longProperty lt long2}">
            lessThan
        </c:if>
        <c:if test="${bean.longProperty ne long2}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>long / LT</td>
    <td><c:out value="${bean.longProperty}"/></td>
    <td><c:out value="${long3}"/></td>
    <td>lessEqual lessThan notEqual</td>
    <td>
        <c:if test="${bean.longProperty eq long3}">
            equal
        </c:if>
        <c:if test="${bean.longProperty ge long3}">
            greaterEqual
        </c:if>
        <c:if test="${bean.longProperty gt long3}">
            greaterThan
        </c:if>
        <c:if test="${bean.longProperty le long3}">
            lessEqual
        </c:if>
        <c:if test="${bean.longProperty lt long3}">
            lessThan
        </c:if>
        <c:if test="${bean.longProperty ne long3}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>short / EQ</td>
    <td><c:out value="${bean.shortProperty}"/></td>
    <td><c:out value="${short1}"/></td>
    <td>equal greaterEqual lessEqual</td>
    <td>
        <c:if test="${bean.shortProperty eq short1}">
            equal
        </c:if>
        <c:if test="${bean.shortProperty ge short1}">
            greaterEqual
        </c:if>
        <c:if test="${bean.shortProperty gt short1}">
            greaterThan
        </c:if>
        <c:if test="${bean.shortProperty le short1}">
            lessEqual
        </c:if>
        <c:if test="${bean.shortProperty lt short1}">
            lessThan
        </c:if>
        <c:if test="${bean.shortProperty ne short1}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>short / GT</td>
    <td><c:out value="${bean.shortProperty}"/></td>
    <td><c:out value="${short2}"/></td>
    <td>greaterEqual greaterThan notEqual</td>
    <td>
        <c:if test="${bean.shortProperty eq short2}">
            equal
        </c:if>
        <c:if test="${bean.shortProperty ge short2}">
            greaterEqual
        </c:if>
        <c:if test="${bean.shortProperty gt short2}">
            greaterThan
        </c:if>
        <c:if test="${bean.shortProperty le short2}">
            lessEqual
        </c:if>
        <c:if test="${bean.shortProperty lt short2}">
            lessThan
        </c:if>
        <c:if test="${bean.shortProperty ne short2}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>short / LT</td>
    <td><c:out value="${bean.shortProperty}"/></td>
    <td><c:out value="${short3}"/></td>
    <td>lessEqual lessThan notEqual</td>
    <td>
        <c:if test="${bean.shortProperty eq short3}">
            equal
        </c:if>
        <c:if test="${bean.shortProperty ge short3}">
            greaterEqual
        </c:if>
        <c:if test="${bean.shortProperty gt short3}">
            greaterThan
        </c:if>
        <c:if test="${bean.shortProperty le short3}">
            lessEqual
        </c:if>
        <c:if test="${bean.shortProperty lt short3}">
            lessThan
        </c:if>
        <c:if test="${bean.shortProperty ne short3}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>string / EQ</td>
    <td><c:out value="${bean.stringProperty}"/></td>
    <td><c:out value="${str1}"/></td>
    <td>equal greaterEqual lessEqual</td>
    <td>
        <c:if test="${bean.stringProperty eq str1}">
            equal
        </c:if>
        <c:if test="${bean.stringProperty ge str1}">
            greaterEqual
        </c:if>
        <c:if test="${bean.stringProperty gt str1}">
            greaterThan
        </c:if>
        <c:if test="${bean.stringProperty le str1}">
            lessEqual
        </c:if>
        <c:if test="${bean.stringProperty lt str1}">
            lessThan
        </c:if>
        <c:if test="${bean.stringProperty ne str1}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>string / GT</td>
    <td><c:out value="${bean.stringProperty}"/></td>
    <td><c:out value="${str2}"/></td>
    <td>greaterEqual greaterThan notEqual</td>
    <td>
        <c:if test="${bean.stringProperty eq str2}">
            equal
        </c:if>
        <c:if test="${bean.stringProperty ge str2}">
            greaterEqual
        </c:if>
        <c:if test="${bean.stringProperty gt str2}">
            greaterThan
        </c:if>
        <c:if test="${bean.stringProperty le str2}">
            lessEqual
        </c:if>
        <c:if test="${bean.stringProperty lt str2}">
            lessThan
        </c:if>
        <c:if test="${bean.stringProperty ne str2}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>string / LT</td>
    <td><c:out value="${bean.stringProperty}"/></td>
    <td><c:out value="${str3}"/></td>
    <td>lessEqual lessThan notEqual</td>
    <td>
        <c:if test="${bean.stringProperty eq str3}">
            equal
        </c:if>
        <c:if test="${bean.stringProperty ge str3}">
            greaterEqual
        </c:if>
        <c:if test="${bean.stringProperty gt str3}">
            greaterThan
        </c:if>
        <c:if test="${bean.stringProperty le str3}">
            lessEqual
        </c:if>
        <c:if test="${bean.stringProperty lt str3}">
            lessThan
        </c:if>
        <c:if test="${bean.stringProperty ne str3}">
            notEqual
        </c:if>
    </td>
</tr>
<tr>
    <td>string / NULL</td>
    <td><c:out value="${bean.nullProperty}" default="null"/></td>
    <td>&nbsp;</td>
    <td>equal greaterEqual lessEqual</td>
    <td>
        <c:if test='${bean.nullProperty eq null}'>
            equal
        </c:if>
        <c:if test='${bean.nullProperty ge null}'>
            greaterEqual
        </c:if>
        <c:if test='${bean.nullProperty gt null}'>
            greaterThan
        </c:if>
        <c:if test='${bean.nullProperty le null}'>
            lessEqual
        </c:if>
        <c:if test='${bean.nullProperty lt null}'>
            lessThan
        </c:if>
        <c:if test='${bean.nullProperty ne null}'>
            notEqual
        </c:if>
    </td>
</tr>
</table>


</body>
</html-el:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -