Re: Struts 2 Custom Validation

2008-02-27 Thread Randy Burgess
Struts Users Mailing List > Date: Wed, 27 Feb 2008 09:48:57 -0500 > To: Struts Users Mailing List > Subject: Re: Struts 2 Custom Validation > > You mean a form with a password field and a confirm password field and > validation that they match? > > @FieldExpressionValidator

Re: Struts 2 Custom Validation

2008-02-27 Thread Randy Burgess
You mean a form with a password field and a confirm password field and validation that they match? @FieldExpressionValidator(expression = "confirmPwd.equals(pwd)", message = "Passwords do not match.") In this case I have 2 fields, one named pwd and one named confirmPwd. I put this validation on t