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 Commons validator - validwhen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
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: 2904
    
    1

I ll try like this ,



try it,


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
 
wood burning stoves
 
subject: Commons validator - validwhen
 
jQuery in Action, 3rd edition