I thought we agreed to add BSF and JXPath validators to a contrib directory so we wouldn't bloat the dependencies needed to distribute the core validator? I'm -1 on adding dependencies in the core distro.
David --- [EMAIL PROTECTED] wrote: > husted 2004/06/08 07:53:12 > > Added: validator/src/test/org/apache/commons/validator > validator-bsf.xml > Log: > Apply #29205 "Add BSFValidator", submitted by Don Brown. > > Revision Changes Path > 1.1 > jakarta-commons/validator/src/test/org/apache/commons/validator/validator-bsf.xml > > Index: validator-bsf.xml > =================================================================== > <!DOCTYPE form-validation PUBLIC > "-//Apache Software Foundation//DTD Commons Validator Rules > Configuration 1.1//EN" > "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd"> > > <form-validation> > <global> > <validator name="bsf" > classname="org.apache.commons.validator.BSFValidator" > method="isValid" > > methodParams="java.lang.Object,org.apache.commons.validator.Field" > msg=""/> > </global> > <formset> > <form name="bsfForm"> > <field property="value" depends="bsf"> > <var> > <var-name>eval</var-name> > <var-value>value.equals("foo")</var-value> > </var> > </field> > </form> > <form name="bsfForm-numeric"> > <field property="value" depends="bsf"> > <var> > <var-name>eval</var-name> > <var-value>Integer.parseInt(value)>0 && > Integer.parseInt(value)<100</var-value> > </var> > </field> > </form> > <form name="bsfForm-nested"> > <field property="object" depends="bsf"> > <var> > <var-name>eval</var-name> > <var-value>value.value.equals("foo")</var-value> > </var> > </field> > </form> > </formset> > </form-validation> > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]