Hi i'm trying to compare two integer values in jstl it is returning the result false even if the statement is true.
here is my code
 String numofcell=(String)request.getAttribute("numberofcell"); 
 int noc = Integer.parseInt(numofcell);
int num = 4;
<c:choose>
    <c:when test = "${noc eq num}">
        <%=noc%>
        hiiiiiiiiiiiii
    </c:when>
    <c:otherwise>
        <%=noc%>
        HELLLOOOOOOO 
    </c:otherwise>
</c:choose>
output is : 4 HELLLOOOOOOO
 
     
     
    