以下EL片段将变量与另一个变量进行比较:
<c:set var="age" value="100"/>
<c:set var="ageLimit" value="18"/>
<c:if test="${age >= ageLimit}">
<c:out value="You are eligible for voting! Your age is ${age} and ageLimit is ${ageLimit}"/>
</c:if>
<c:if test="${age < ageLimit}">
<c:out value="You are NOT eligible for voting! Your age is ${age} and ageLimit is ${ageLimit}"/>
</c:if>
当年龄值超过99时,EL无法返回正确的结果,而是打印以下数据。
You are NOT eligible for voting! age is 100 and ageLimit is 18
如何让EL打印正确的值?