Hi folks, having problem getting my own rude words validator to work. I get the following in the console window but no debug from my Validation class. I am not that familiar with reflection so I am a bit lost as to how to debug further.???? Thanks for you help
console window: ---------------- Validator::validate() reflection - com.jacobsrimell.apsbiz.webapp.utils.validator.ProfanityValidator in validation-rules.xml: -------------------------- <validator name="profanity" classname="com.jacobsrimell.apsbiz.webapp.utils.validator.ProfanityValidator " method="validateProfanity" msg="errors.profanity"/> in validation.xml: ------------------- <field property="hubType" depends="mask,profanity"> <arg0 key="provisioningForm.hubType"/> <var> <var-name>mask</var-name> <var-value>^[a-zA-Z]</var-value> </var> </field> ProfanityValidator.validateProfanity() --------------------------------------- public static boolean validateProfanity(Object bean, ValidatorAction va, Field field, ActionErrors errors, HttpServletRequest request, ServletContext app) { JRU_Logger.msg("///////////////////////////// Validating Profanities "); String value = ValidatorUtil.getValueAsString(bean, field.getProperty()); if (!GenericValidator.isBlankOrNull(value) && isProfane(value)) { errors.add(field.getProperty(), StrutsValidatorUtil.getActionError(app, request, va, field)); return false; } else{ return true; } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]