| Author |
Struts Properties File
|
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Guys, What's the use of the struts.properties file in Struts 2?
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8265
|
|
|
Here is an example, fully documented.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
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
Joined: Apr 02, 2004
Posts: 884
|
|
Well, if you don't like it, try zero configuration.
|
SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
|
 |
Don Brown
author
Greenhorn
Joined: Apr 22, 2008
Posts: 25
|
|
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.
|
 |
 |
|
|
subject: Struts Properties File
|
|
|