I think it is a great place for plugin ;-) You can use interceptor with connected interface as e.g. ServletConfigInterceptor and RequestAware - interceptor will read the config files and then it will apply them to actions implementing given interface. You can have many interfaces to distinguish different config types.
You can also use annotation instead of interfaces and scan for them using AnnotationUtils or some other tool. 2014/1/7 Chris <christal...@yahoo.fr>: > Hello , > I have the same request. > Perhaps the response can help you > You can use Interceptor#init() > > http://struts.1045723.n5.nabble.com/Struts2-and-JDBC-How-to-read-jdbc-properties-only-once-for-100-or-1000-users-td5714995.html > > > > > > > Le Mardi 7 janvier 2014 10h17, Giuliano Catrambone > <giulia...@catrasoftware.it> a écrit : > > Hi all, > can someone suggest me how to manage an application configuration file > in a struts application? > > I'm thinking a configuration file like > <myapp>.properties > > Is there a place in a struts app where I can read the properties > cfg file just once > and share it in every java file (actions, ....)? > > Thanks > giu > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org