The this keyword needs to be enclosed in astrix... <var-value>(confirmPassword == *this*)</var-value>
http://struts.apache.org/userGuide/dev_validator.html#validwhen Niall ----- Original Message ----- From: "Scott Purcell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <user@struts.apache.org> Sent: Tuesday, March 15, 2005 7:15 PM Subject: validwhen problem Hello, I am having troubles getting the validwhen validation to work. <field property="password" depends="validwhen"> <arg0 key="requestaccount.password.displayname"/> <var> <var-name>test</var-name> <var-value>(confirmPassword == this)</var-value> </var> </field> I have a bean that extends the ValidatorForm and has setters and getters for the two fields I need. getPassword(); setPassword(String password) getConfirmPassword() setConfirmPassword(String confirmPassword); of course there is a private String called password, or confirmPassword for each method. I did study the notes, but cannot seem to get this working. Can anyone assist? Thanks, Scott --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]