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,
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
>
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
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
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
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
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
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
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
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
This is the code for the validator form
public class ValidatorLicenciaMaestro implements Serializable{
public static boolean validateLicenciaMaestro(Object
bean,ValidatorAction va, Field field,ActionMessages
errors,org.apache.commons.validator.Validator
validator,HttpServletRequest requ
Looks like the method signature you've defined in the validaot-rules.xml
doesn't match whats actually in your java class. How about you show us
validateLicenciaMaestro() method in the ValidatorLicenciaMaestro class?
- Original Message -
From: "Metal KoRn" <[EMAIL PROTECTED]>
To:
Sent: Th
12 matches
Mail list logo