JSTL praseNumber
I am trying to test using JSTL, if a variable is a number, but it dont work, even if the var is a number, it still go to the if statement that says its not a number. what can be wrong?
<c:if test="${srcType == 'refNo'}">
<c:set var="srcTypeTemp" value="${srcType}"/>
<c:catch var="error">
<fmt:parseNumber var="empNumber" value="${srcTypeTemp}" />
</c:catch>
<c:if test="${not empty error}">
<jsp:forward page="/internal/mois/feedbackAdmin/home.html"/>
</c:if>
<c:if test="${empty error}">
<c:set var="srcSQL" scope="page">${"ok"}</c:set>
</c:if>
</c:if>

