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:

<field-validator type="fieldexpression">
        <![CDATA[#password1.equals( password2 )]]>
        <message>The passwords do not match!</message>
</field-validator>

Which works perfectly.  Thanks!

Kelly
-- 
View this message in context: 
http://www.nabble.com/-S2--Matching-string-validator-tp16679023p16680522.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