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 (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 struts 2.
> 
> Thanks!
> 
> Kelly
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--Matching-string-validator-tp16679023p16679912.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to