• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Annotations vs XML

 
Priya Bindra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am just learning Struts2 and am wondering what is the industry practice? To use Annotations or XML config?
 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These types of questions have been asked before like here...
 
Priya Bindra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The thread wasnt much insightful. I dont want to re-invent the wheel by trying all the available options in a framework. I am rather looking for industry standards, as created by experienced pros around in this forum!
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Priya Bindra

It does not seem like your question is specifically related to the Struts2 framework. If it is, then are you asking if using Struts2 annotations are preferred over specifiying configuration data in a struts-config.xml file?

Moreover, do Struts2 annotations even exist?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There *is* no "industry standard"--it just depends on preferences and requirements.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic