Shouldn't this be in the
struts forum. Anyway, requiredIf is deprecated and
you should use validWhen instead. Anyway, whether you use this or that, you have to define a variable called
test, where you put you boolean expression. For example, if you use validWhen in your case, it should look something like this:
Which means that this field is valid when sex is not M or the age group is not the first one or the hobbies is not null. This means that if the user chooses both M and the first age group, then he MUST fill the hobbies field, or it won't be valid. You can build much more complex scenarios if you want.
As for requiredIf (which is deprecated as I stated before), you also define the test variable, and it will mean that this field is required if the following test succeeds. As you can see, validWhen is much better.