Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Annotation question for Struts 2 - Design and Programming

 
Kazeem Akinrinde
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
No doubt, convention over configuration is fast becoming the direction for modern software development methodology. This is the major addition to Java 1.5, Spring Framework from 2.0 and many other JEE framework. Annotation is obviously central to this goal.

In Struts 2.0, how mature is Annotation inclusion? Take for example, @Result/@Results annotation in struts 2, can I use it to map a result to Action's method instead of to a whole Action class? This facility is available if we use struts.xml, but it seems absence in annotations alternative because you can only annotate with @Result at class level only.
Please can you clarify on this and highlight the future of struts 2 in this respect

Thanks a lot
 
Budi Kurniawan
Author
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Struts 2 zero configuration (Chapter 26) is possible thanks to annotations and the CodeBehind plug-in. My own tests showed stable results.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic