Create two validation XML files, one for each method. You can differentiate between them in a couple different ways, the easiest may be to just create two action mappings, one for each method.
d. --- lbastil <[EMAIL PROTECTED]> wrote: > > Is there any way with the build in declarative > validation possibilities in > struts 2 (annotations, xml) > to do something like conditional validation in the > following sense: > > in the action class I have a model class, where on > action method one i want > to validate > a special subset of model attributes and on action > method two another subset > of attributes? > > (note the model in action is used "modeldriven") > > Thank you for any idea, > Basti > -- > View this message in context: > http://www.nabble.com/-s2--conditional-validation-tf4843582.html#a13857280 > Sent from the Struts - User mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]