34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
<!DOCTYPE form-validation PUBLIC
|
|
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
|
|
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">
|
|
|
|
<form-validation>
|
|
|
|
<global>
|
|
|
|
<validator name="customRulePalindrome"
|
|
classname="validation.custom.Controller"
|
|
method="validatePalindrome"
|
|
methodParams="java.lang.Object,
|
|
org.apache.commons.validator.ValidatorAction,
|
|
org.apache.commons.validator.Field,
|
|
org.apache.struts.action.ActionMessages,
|
|
javax.servlet.http.HttpServletRequest,
|
|
javax.servlet.ServletContext" >
|
|
</validator>
|
|
|
|
<validator name="customRuleDivisibleBy"
|
|
classname="validation.custom.Controller"
|
|
method="validateDivisibleBy"
|
|
methodParams="java.lang.Object,
|
|
org.apache.commons.validator.ValidatorAction,
|
|
org.apache.commons.validator.Field,
|
|
org.apache.struts.action.ActionMessages,
|
|
javax.servlet.http.HttpServletRequest,
|
|
javax.servlet.ServletContext" >
|
|
</validator>
|
|
|
|
</global>
|
|
|
|
</form-validation>
|