wood burning stoves 2.0*
The moose likes Struts and the fly likes Commons validator - validwhen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Commons validator - validwhen" Watch "Commons validator - validwhen" New topic
Author

Commons validator - validwhen

Ashish Soni
Greenhorn

Joined: May 25, 2008
Posts: 24
How can i do below validation using commons validator

If Field-1 is not null then either Field-2 is required or Field-3 is required. I am able to do for two fields using validwhen but not for three fields.

Please help.

Ashish
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

I ll try like this ,



try it,


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Commons validator - validwhen
 
Similar Threads
Limits of Validator Framework
Validwhen validator client side javascript
struts 1.2.7 validation using validwhen
jakarta commons validator
Validwhen validator java script