Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Commons validator - validwhen

 
Ashish Soni
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ll try like this ,



try it,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic