Re: [S2] Matching string validator

2008-04-14 Thread Kelly.Graus
Kelly.Graus wrote: > > Thanks for the reply! I'm using field validators, so I did this: > > > > The passwords do not match! > > > Which works perfectly. Thanks! > > Kelly > Actually, it should be: The passwords do not match! -- View this

Re: [S2] Matching string validator

2008-04-14 Thread Kelly.Graus
Guillaume Bilodeau wrote: > > Sure, you can use an ExpressionValidator annotation with an OGNL > expression like this: > > @ExpressionValidator(expression = "password1.equals(password2)", ...) > > Cheers, > GB > Thanks for the reply! I'm using field validators, so I did this:

Re: [S2] Matching string validator

2008-04-14 Thread Dave Newton
--- "Kelly.Graus" <[EMAIL PROTECTED]> wrote: > Does struts 2 have a built in validator that will allow me to make sure two > fields match (ie, two password fields). From looking around, it seems that > struts 1 had validatewhen which could be used, but I haven't been able to > find anything for st

Re: [S2] Matching string validator

2008-04-14 Thread Guillaume Bilodeau
Sure, you can use an ExpressionValidator annotation with an OGNL expression like this: @ExpressionValidator(expression = "password1.equals(password2)", ...) Cheers, GB Kelly.Graus wrote: > > Hello, > > Does struts 2 have a built in validator that will allow me to make sure > two fields match