How to check isNumeric/IsNumber in JSTL
how to do this simple check in JSTL(without extending any java classes and additional JSP functions). I need it like this: <c:if test="${fn:isNumeric()}"> ... do something ... </c:if> Thanks in advance. If your environment supports the new EL 2.2 feature of invoking non-getter methods on EL objects (which is available in all Servlet 3.0 compatible containers, such as Tomcat 7, Glassfish 3, etc), then you could just use the String#matches() method directly in EL. <c:set var="numberAsString">${someExpressionToTestForNumber}</c:set> <c:if test="${numberAsString.matches('[0-9]+')}"> It's a number!