• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Annotation question for Struts 2 - Design and Programming

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic