i have a text field that needs to accept on;y integers and not more than 10 digits.
i wrote the below code and it accepts the integers but when i eneter more than 10 digits it evaluates to some junk value and when i enter letters it gives error page..
Pattern p= Pattern.compile("([0-9]*)");
String likeExpression = "%" + this.id + "%";
Matcher m =p.matcher(likeExpression);
if(m.lookingAt()){
results =orderdao.findWithLikeId( likeExpression );
logger.debug("m.lookingAt {}", m.lookingAt());
logger.debug("results {}", results.size() );
return Action.SUCCESS;
please can i get help, its a bit urgent