superman
11-15-2006, 06:59 PM
could anyone tell me how i could go about validating a number using jsp and jstl
i managed to figure out <c:if test="${fn:length(param.mobile) != 10}">
to make sure its 10 characters long
now i want to check that the 10 digits are numbers and not characters e.g 0871111111 not 087abcdefg
i managed to figure out <c:if test="${fn:length(param.mobile) != 10}">
to make sure its 10 characters long
now i want to check that the 10 digits are numbers and not characters e.g 0871111111 not 087abcdefg