File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Annotation question for Struts 2 - Design and Programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Annotation question for Struts 2 - Design and Programming" Watch "Annotation question for Struts 2 - Design and Programming" New topic
Author

Annotation question for Struts 2 - Design and Programming

Kazeem Akinrinde
Greenhorn

Joined: Aug 24, 2002
Posts: 21
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

Joined: Apr 30, 2002
Posts: 65
In Struts 2 zero configuration (Chapter 26) is possible thanks to annotations and the CodeBehind plug-in. My own tests showed stable results.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Annotation question for Struts 2 - Design and Programming