I am trying to implement requiredif but it is not working for me in Tomcat 4.1 with Struts 1.1. Can anybody please send me (firstname.lastname@example.org) a sample war file that has one requiredif validation. This help is very much helpful. Thanks in advance.
http://jakarta.apache.org/struts/userGuide/dev_validator.html This may direct you in the right direction. There's a good reason why requiredif is already deprecated. It's ugly. I recommend writing your own validation method to achieve the functionality. It's not too hard to do. Just have a method that returns false if you don't want to run any validations. validwhen may even be a good option unless you are using the 1.1 production release.
A good workman is known by his tools.
posted 14 years ago