This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
You will have other two options: 1. You can override the validate() method of your form. The super.validate() method call kicks in first and validates the fields as per the configurations in the validation.xml. Then you can fetch the values of those particular fields and validate them within validate method. Following is the code snippet:
2. You can write a CustomValidator. Declare this custom validator for the third field. You can fetch the values of the all the associated fields within the custom validator and add throw error messages.
I cannot use action forms validate method, as I would lose the consistancy of developement. I was thinking to use Validwhen- The expression just bloats and gets confusing.. Any sudgestion on this really appreciated!!!
Joined: Oct 09, 2004
Thanks Very much. I really appreciate your help. I have the custom validation working.