Re: My OWN VALIDATOR

2005-05-14 Thread Metal KoRn
Im having a problem with validating a password field . THIS IS MY CODE infe validator.FMValidator class public static boolean validatePassword( Object bean, ValidatorAction va, Field field, ActionMessages errors,

Re: My OWN VALIDATOR

2005-05-12 Thread Metal KoRn
OK but I really dont know when to use all of them or some of them can u explain me thnx On 5/12/05, Niall Pemberton <[EMAIL PROTECTED]> wrote: > This is the same problem you had with your other custom validation method - > the parameters you've defined in the validation configuration file don't >

Re: My OWN VALIDATOR

2005-05-11 Thread Niall Pemberton
This is the same problem you had with your other custom validation method - the parameters you've defined in the validation configuration file don't match your method signature. http://www.mail-archive.com/user@struts.apache.org/msg26221.html http://www.mail-archive.com/user@struts.apache.org/msg2

Re: My OWN VALIDATOR

2005-05-11 Thread Metal KoRn
Hi Im having a problem with validators this is the error VALIDATION FAILED May 11, 2005 11:29:09 PM org.apache.struts.validator.ValidatorForm validate SEVERE: validator.FMValidator.validateList(java.lang.Object, org.apache.commons. validator.ValidatorAction, org.apache.commons.validator.Field, o

Re: My OWN VALIDATOR

2005-05-05 Thread Niall Pemberton
You should have declared them in a element in your struts-config.xml - if you have it will find them. Niall - Original Message - From: "Metal KoRn" <[EMAIL PROTECTED]> Sent: Friday, May 06, 2005 3:48 AM OK I got it but i have a doubt with this errors.add(field.getKey(), Resources.getA

Re: My OWN VALIDATOR

2005-05-05 Thread Metal KoRn
OK I got it but i have a doubt with this errors.add(field.getKey(), Resources.getActionMessage(request, va, field)); Where is declared the object Resources Im getting a cannot resolve symbol with the method getActionMessage On 5/5/05, Niall Pemberton <[EMAIL PROTECTED]> wrote: > In your validat

Re: My OWN VALIDATOR

2005-05-05 Thread Niall Pemberton
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

Re: My OWN VALIDATOR

2005-05-05 Thread Metal KoRn
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: > > classname="validator.V

Re: My OWN VALIDATOR

2005-05-05 Thread Niall Pemberton
As I said the method signatures don't match - you're missing the "Validator" parameter. Change your config file to the following: Niall - Original Message - From: "Metal KoRn" <[EMAIL PROTECTED]> Sent: Friday, May 06, 2005 2:50 AM This is the code for the validator form publi

Re: My OWN VALIDATOR

2005-05-05 Thread Metal KoRn
Hey guys Im having a bit of problems by applying my own validators. The thing is that I create my validator class, for testing reasons the calling method returns a false, this only for checkin if the validator is working good. But Im getting the following Exception. Im using Struts 1.2.4 version

Re: My OWN VALIDATOR

2005-05-05 Thread Metal KoRn
dateLicenciaMaestro() method in the ValidatorLicenciaMaestro class? > > - Original Message - > From: "Metal KoRn" <[EMAIL PROTECTED]> > To: > Sent: Thursday, May 05, 2005 5:56 AM > Subject: My OWN VALIDATOR > > Hey guys Im having a bit of problems

Re: My OWN VALIDATOR

2005-05-04 Thread Niall Pemberton
L PROTECTED]> To: Sent: Thursday, May 05, 2005 5:56 AM Subject: My OWN VALIDATOR Hey guys Im having a bit of problems by applying my own validators. The thing is that I create my validator class, for testing reasons the calling method returns a false, this only for checkin if the validato

My OWN VALIDATOR

2005-05-04 Thread Metal KoRn
Hey guys Im having a bit of problems by applying my own validators. The thing is that I create my validator class, for testing reasons the calling method returns a false, this only for checkin if the validator is working good. But Im getting the following Exception. Im using Struts 1.2.4 version