You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Skip Hollowell <sk...@skipdaddy.com> on 2007/05/09 17:15:34 UTC
[S2] Setting Global Variable in Struts 2
I know this is probably a dumb question, and even more so it is probably
in some best practices doc that I haven't seen, but here goes anyway.
What is the preferred/recommended method for setting some global
variables for my struts 2 app? These are things that may change
sometime, so I would update a config file somewhere and then just
restart the app.
for example
AGE_MAX=18
AGE_MIN=65
Obviously I can just use standard properties XML stuff, but I wasn't
sure of the best place to read the file, and if there were already some
built in preferred methods of opening and readying config files.
Thanks for any insight.
Skip Hollowell
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org