This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
We explain how annotations work and give an examples of using them. With that said, we probably focus more on XML, but that shouldn't matter. Annotations and XML are really two interfaces to the same Struts 2 declarative architecture. We focus on making sure that you understand that architecture. We actually use XML heavily in the book because it makes a better single file blueprint of the application, which really helps when you are trying to explain things to a reader.