I am just learning to use struts validator. I see all of the "built in" rules are mainly numeric checks and range checks.
How would I check to see if a field value is in a range of words, like "cat", "dog", "cow". I cannot see how the regex mask would work for it but I don't want to put my own code in the validate method.
Also, has anyone created their own rules to add to validation.xml?
How would I check to see if a field value is in a range of words, like "cat", "dog", "cow". I cannot see how the regex mask would work for it but I don't want to put my own code in the validate method.
Also, has anyone created their own rules to add to validation.xml?