0

I read from here

https://cwiki.apache.org/WW/annotations.html

that Annotation are deprecated and changed by Conventions plugin.

I noted that documentation that Convention plugin still use @Actions or @Interceptor anottations but they use validation interceptor instead to use @Validations.

So, should I forget to use @Validation and use validation interceptor?

molavec
  • 8,848
  • 1
  • 27
  • 22

1 Answers1

2

No, validation annotations are not deprecated. Looking at the API would tell you that.

The comment is specifically in the Action Annotations section of that page, and applies only to those annotations, which are now supplied by the convention plugin–as stated.

The validation interceptor is used regardless of validation configuration method.

Dave Newton
  • 158,873
  • 26
  • 254
  • 302
  • Thanks you, Dave. I wouldn't like to change it all to XML Validation Style. However, I have noted that XML Validation style could clean my Action code, but probably I change it in another instance. – molavec Aug 16 '12 at 03:09
  • @molavec If the post answers your question, mark it so as to help other SO users. – Uchenna Nwanyanwu Aug 16 '12 at 08:10