• 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

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!
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic