Actually, Struts 2 checks the whole class hierarchy when an action is
to be validated, so it will find the annotation on the parent class.

musachy

2008/5/12 Musachy Barroso <[EMAIL PROTECTED]>:
> That's the way we roll in Struts 2, it works even when it is not
>  supposed to :). Do you have any xml validation set up as well?
>
>  musachy
>
>
>
>  On Mon, May 12, 2008 at 12:00 PM, Anna Skawińska <[EMAIL PROTECTED]> wrote:
>  > Hi all,
>  >
>  >  I'll start my posting here with a fairly basic Java issue - hope I won't
>  > get banned ;)
>  >
>  >  I've just realized that I'm using the @Validation annotation on a base
>  > class for my validated actions. As far as I know, Java5 annotations don't
>  > get inherited unless the annotation type has the @Inherited annotation
>  > itself. I checked in the Struts2 sources - this is not the case for
>  > @Validation.
>  >
>  >  How comes that validation works in my application?
>  >
>  >  Thanks,
>  >  Anna
>  >
>  >  ---------------------------------------------------------------------
>  >  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >  For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>
>  --
>  "Hey you! Would you help me to carry the stone?" Pink Floyd
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to