Hope anyone can help. We are using Struts 1-1b2, and I imported the latest Jakarta ORO package, Commons BeanUtils, Logging, Collections and Digester
We are using Validator Framework to perform validation, and we successfully implemented the "required, minlength, maxlength" validations. However, when I tried to implement "mask" for email, phone, zip using reg expression, it doesn't seem to work. Here is my validator-rules.xml: <validator name="mask" classname="org.apache.struts.util.StrutsValidator" method="validateMask" methodParams="java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest" depends="required" msg="errors.invalid"> And here is my validator.xml: <form-validation> <global> <constant> <constant-name>zip</constant-name> <constant-value>^\d{5}\d*$</constant-value> </constant> </global> <formset> <form name="DateTestBean"> <field property="zip" depends="required, mask"> <arg0 key="entry.zip"/> <var> <var-name>mask</var-name> <var-value>${zip}</var-value> </var> </field> </form> </formset> </form-validation> Hope anyone can help. Thanks, Yosh -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>