Do you have a link to some docs on how to use annotations to specify
validation rules? I haven't seen anything about that yet.
I am attempting to do the same thing and it definitely isn't working
properly. If you simply use a validator for the entire Action defined
in ActionName-validation.xml then it works (and gets applied to all
methods), but ActionName-MethodName-validation.xml does not get picked up.
-- Allen
André Faria wrote:
Ok, but what about annotations without xmls?
Musachy Barroso escreveu:
See here:
http://struts.apache.org/2.x/docs/validation.html
you can add a file ActionName-MethodName-validation.xml with the
validation
for that method.
regards
musachy
On 2/21/07, cilquirm <[EMAIL PROTECTED]> wrote:
I believe you can use validation annotation to specify validation
routines
at
the method level.
ros wrote:
>
> Hi!
>
> How to configure struts2 validation for only one method in action?
>
> Thanks.
>
--
View this message in context:
http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267302.html#a9083597
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]