File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Commons validator - validwhen

Ashish Soni

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.

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

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:
subject: Commons validator - validwhen
It's not a secret anymore!