File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Properties File

 
Joe Harry
Ranch Hand
Posts: 10045
3
Eclipse IDE Mac PPC Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

What's the use of the struts.properties file in Struts 2?
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an example, fully documented.
 
Joe Harry
Ranch Hand
Posts: 10045
3
Eclipse IDE Mac PPC Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The link is fine but I wanted to know why we need a struts.properties file when we already have a struts.xml file?
 
Chengwei Lee
Ranch Hand
Posts: 884
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if you don't like it, try zero configuration.
 
Don Brown
author
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
struts.properties is mostly a legacy feature that allows you to specify configuration settings, or as they are called in struts.xml, constants. I believe, at this point, struts.properties is effectively deprecated, however, there are a few bugs open right now of settings that must go into this file and can't go into struts.xml.

Fun fact of the day: you can specify any setting you'd normally put in struts.properties or struts.xml in web.xml as a filter init parameter for the Struts 2 filter.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic