This week's book giveaway is in the OCAJP forum. We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line! See this thread for details.
I am submitting a form to the action class. In the action class I need to do some validation. But the validation needs to be done if some conditions are true. there are different validation errors for different fields.
so lets say if i have this in my action class
this will do validation whenever the 'enter date field is empty'. But what If I wanted to do this if and only if method isTrue() returns true? how would i do that??
Will I have to write my custom validator just for this?