Actually, you will have te create 5 different aliases in order to map
the method called in your struts.xml. The alias is the name of the
action in this file.
regards
Sébastien
Néstor Boscán a écrit :
Yes but that's my point. If I have an Action with 5 methods with 5 different
validations I have to create 5 different action aliases just to make the
validation framework happy, makes no sense to me.
Regards,
Néstor Boscán
-----Mensaje original-----
De: Sébastien Domergue [mailto:[EMAIL PROTECTED]
Enviado el: Tuesday, October 14, 2008 10:29 AM
Para: Struts Users Mailing List
Asunto: Re: Is there a way for *-validate.xml to validate specific methods
instead of Action Ids?
hi,
actually, you can name your validation file with the following pattern :
<actionClass>-<actionAlias>-validation.xml
where actionAlias is the name of the action used to call the actionClass.
regards
Sébastien
Néstor Boscán a écrit :
Hi
Is there a way I can create action-method-validate.xml to validate
specific methods instead of Action IDs. We have a lot of Actions with
many methods and is a real problem to configure the *-validate.xml
because it will validate all methods (except those in excludeMethods
but this configuration can get really complicated). The use of
class-actionName-validate.xml is also difficult because it means I have to
create one action per method.
Regards,
Nestor
---------------------------------------------------------------------
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]