I'm assuming you're using the same form in more than one action. Otherwise, the obvious solution would be just to remove the other validations. While you can turn validation on or off for an entire form, as far as I'm aware, there is no mechanism for turning validation for individual fields on and off.
Here's something that might work for you, though. With the Struts Validation Framework, you have a choice of validating either by the form name or by the action path. You're currently validating by the form name.
The advantage of validating by the action path is that you can validate the same form differently for each action. So, if one action only needs to validate one field and another action using the same form needs to validate 12 fields, they both will work. The disadvantage to validating by action path is that if you use the same form in 5 different actions, you have to redefine the validations 5 times.
If validating by action path sounds like something you want to try, here's how you do it:
Modify your Actionform so that it extends ValidatorActionForm rather than Validatorform
Create a separate <form> stanza in your validation.xml file for each action, and specify the action path as the name instead of the form (Example: name="/myAction" )
List each field to be validated, just as before.
[ March 22, 2007: Message edited by: Merrill Higginson ]