• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Struts 2 Convention

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi , I'm new here in java ranch ,hope you guys can help me.

My team will be developing a struts 2 spring + hibernate using struts 2 mvc. Just wanna ask if there is a tutorial for struts 2 coding convention.

Like is it better to use annotation than xml? or using struts.xml as configuration rather than using zero configuration.

Hope you pro's can help me.

Thanks!
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The things you mentioned are a matter of preference.
 
Neil Muya
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe I was just confused about a concept i heard , that annotations are better than xml.

Because I see validation annotations being used this days instead of validation xml.

And I see examples of using the include element in struts.xml to lessen the code.

hmm maybe I was hoping for a struts 2 conventions that would make the code more readable.

Anyway maybe it really depends on the preference.

Thanks for answering dave , maybe I should experiment on both xml and annotation as well as zero configuration to see what is more readable and maintainable .



 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Neil Muya wrote:
maybe I should experiment on both xml and annotation as well as zero configuration to see what is more readable and maintainable .



I think you've answered your own question!
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic