I use this successfully. <field name="credential.password"> <field-validator type="expression"> <param name="expression">
credential.passwordRepeat.toUpperCase().equals(credential.password.toUpperCase()) </param> <message key="passwordsNotMatching" /> </field-validator> </field> On Thu, May 14, 2009 at 2:11 PM, Dave Newton <newton.d...@yahoo.com> wrote: > manub wrote: > >> - I'm not able to perform an equality check on two parameters. I've got >> password and confirmPassword which I try to validate using something like: >> >> <validator type="expression"> >> confirmPassword.equals(password) >> <message>...</message> >> </validator> >> >> What am I getting wrong? >> - Even if I'm putting input that should be validated, I'm never going to >> the >> execute method of the action. It seems that validation always fails. >> >> >> DEBUG [http-8080-1] (CommonsLogger.java:57) - Bypassing >> //EseguiRegistrazione >> DEBUG [http-8080-1] (CommonsLogger.java:57) - Validating >> //EseguiRegistrazione with method execute. >> DEBUG [http-8080-1] (CommonsLogger.java:57) - Forwarding to location >> /pages/account/registrazione.jsp >> >> (EseguiRegistrazione is the action I forward my submit to, the one that is >> validated, and the location is the one associated to input result) >> >> Using Struts 2.1.6. >> > > Include the complete field validation configuration, the interceptor stack > you're using, and the action configuration. > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >