Re: Re: complex validation problem.

2006-04-29 Thread Jakub Milkiewicz
Hi Thanks for all answers. Finally i created 2 new validators: skipNextIf and gotoNextIf. They both test some expression which is passed in var-value parameter and if the expression is evaluated to true, skipNextIf return false and gotoNextIf return true. As you can imagine, i do not add any entri

RE: Re: complex validation problem.

2006-04-28 Thread Chaudhary, Harsh
You could write a custom validator which would read the value of the documentIdentity. Then, If documentIdentity != "pazport", return true else -- Run your mask validation for passport number -- To do the mask validation, from your class, consult this: http://struts.apache.org/struts-action/stru