File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes validwhen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validwhen" Watch "validwhen" New topic
Author

validwhen

Bruno Frascino
Ranch Hand

Joined: Jul 22, 2003
Posts: 55
Hi there,

I need to validade my field password and password confirmation, so my second one needs to be identical to the first one.
Has somebody implemented anything like that with the validwhen method?

I know about the var declaration, but I'm having trouble with the expression, how to compare both field's value?

thnks


--BJCK--
Bruno Frascino
Ranch Hand

Joined: Jul 22, 2003
Posts: 55


This code check if my field myPassword is identical to the field checkPassword.

Thanks anyway!
 
Don't get me started about those stupid light bulbs.
 
subject: validwhen