Looks like Nabble was escaping my HTML - let's try again with HTML Format checked:
true Reason is required. friendEmail reason.equals('friend') and friendEmail == null Please provide your friend's email reason.equals('friend') and friendEmail == null Please provide your friend's email Musachy Barroso wrote: > > I've read this like 10 times just to make sure I'm not missing something, > but: > > > friendEmail > reason.equals('friend') and friendEmail == null > Please provide your friend's email > > > > why is "friendEmail" in the expression?(should be " > reason.equals('friend') > and friendEmail == null" right?) > > musachy > > On 7/18/07, mraible wrote: >> >> >> I'm trying to use a FieldExpressionValidator (or ExpressionValidator) to >> compare fields. Unfortunately, it doesn't seem to be working. I have a >> radio >> button (named "reason") and a text field named "friendEmail". If the >> selected radio has a reason of "friend", I want to require the text >> field. >> However, the expression "reason.equals('friend') and friendEmail == null" >> doesn't seem to work. Is this expression syntax correct, or do I have to >> do >> something additional to get a handle on the "reason" and "friendEmail" >> values? >> >> >> >> true >> Reason is a required field. >> >> >> >> >> friendEmail >> reason.equals('friend') and friendEmail == null >> Please provide your friend's email >> >> >> I've also tried the following, but no dice: >> >> >> >> reason.equals('friend') >> Please provide your friend's email >> >> >> >> Thanks, >> >> Matt >> -- >> View this message in context: >> http://www.nabble.com/FieldExpressionValidator%3A-How-do-I-reference-field-names--tf4104715.html#a11673436 >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > -- View this message in context: http://www.nabble.com/FieldExpressionValidator%3A-How-do-I-reference-field-names--tf4104715.html#a11677716 Sent from the Struts - User mailing list archive at Nabble.com.