JSTL Comparison Operator : Operators « JSTL « Java Tutorial






<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

<html>
<head>
<title>EL Expression Examples</title>
</head>
<body>
<h1>EL Expression Examples</h1>

<h2>Logical Operators</h2>



<h2>Comparison Operators</h2>

4 > '3'   
<c:out value="${4 > '3'}"/>
<br/>
'4' > 3   
<c:out value="${'4' > 3}"/>
<br/>

'4' > '3' 
<c:out value="${'4' > '3'}"/>
<br/>
4 >= 3    
<c:out value="${4 >= 3}"/>
<br/>
4 <= 3
<c:out value="${4 < 3}"/>
<br/>
4 == '4'
<c:out value="${4 == 4}"/>
<br/>


</body>
</html>
  Download:  JSTLComparisonOperator.zip( 1,021 k)








24.3.Operators
24.3.1.JSTL Comparison Operator
24.3.2.Arithmetic Operator Mod
24.3.3.Arithmetic Operator Divide
24.3.4.Arithmetic Operator DIV