Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Struts validator question

Status
Not open for further replies.

lfhaddix

MIS
Nov 12, 2004
1
US
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top