My problem is that I want use bean validation , so I do on my employee bean:
@Pattern( regexp = "\.+",message="Name is not null") @Size(max=10,message = "Name is verylong")
private String name;
I want to check with pattern if the string is null. The problem is that when submit form if the field is length>10, it gives me the error. But if it is null it doens't five me the error. Anyone can help me?