This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validwhen
 
Similar Threads
Struts validwhen doesn't offer client side validation?
strut validation help
how to check two fields are similar in struts?
validwhen returns required error messge
Struts validation help needed....