husted 2004/04/28 15:40:14 Modified: conf/share validator-rules.xml Log: Apply #2618 "validateUrl() is missing in validator-rules.xml" submitted by Matthias Wessendorf. Revision Changes Path 1.51 +15 -4 jakarta-struts/conf/share/validator-rules.xml Index: validator-rules.xml =================================================================== RCS file: /home/cvs/jakarta-struts/conf/share/validator-rules.xml,v retrieving revision 1.50 retrieving revision 1.51 diff -u -r1.50 -r1.51 --- validator-rules.xml 1 Apr 2004 15:17:05 -0000 1.50 +++ validator-rules.xml 28 Apr 2004 22:40:14 -0000 1.51 @@ -236,7 +236,6 @@ msg="errors.range"/> - <validator name="creditCard" classname="org.apache.struts.validator.FieldChecks" method="validateCreditCard" @@ -259,6 +258,18 @@ javax.servlet.http.HttpServletRequest" depends="" msg="errors.email"/> + + <validator name="url" + classname="org.apache.struts.validator.FieldChecks" + method="validateUrl" + methodParams="java.lang.Object, + org.apache.commons.validator.ValidatorAction, + org.apache.commons.validator.Field, + org.apache.struts.action.ActionMessages, + javax.servlet.http.HttpServletRequest" + depends="" + msg="errors.url"/> + <!-- This simply allows struts to include the validateUtilities into a page, it should not be used as a validation rule.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]