In your validateLicenciaMaestro() you need to add a message to the
ActionMessages object (if validation fails) - look at Strut's FieldChecks
class if you want an example.

Niall
----- Original Message ----- 
From: "Metal KoRn" <[EMAIL PROTECTED]>
Sent: Friday, May 06, 2005 3:29 AM


IT WORKS , but im not getting the error sent by the validator

On 5/5/05, Niall Pemberton <[EMAIL PROTECTED]> wrote:
> As I said the method signatures don't match - you're missing the
"Validator"
> parameter. Change your config file to the following:
>
>        <validator name="licencia"
>              classname="validator.ValidatorLicenciaMaestro"
>                 method="validateLicenciaMaestro"
>           methodParams="java.lang.Object,
>                         org.apache.commons.validator.ValidatorAction,
>                         org.apache.commons.validator.Field,
>                         org.apache.struts.action.ActionMessages,
>                         org.apache.commons.validator.Validator,
>                         javax.servlet.http.HttpServletRequest"
>                depends=""
>                    msg="errors.licencia"/>
>
> Niall



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to