Hi there, after starting some serious migration from struts to struts2 I am wondering is there is any "best practices" for global application parameters. I used to store this parameters in web.xml, but as struts2 finds important not to be tied to the "http" thing (I read it very often in docs... about unit testing, etc.) I find myself with problems every time I want to get a web.xml init parameter. In actions it is not that difficult, but it is in interceptors, as there is no way to get the ServletContext as they have no init method getting it as a parameter. (I am now lazy loading that parameter at first Action invocation to the interceptor) I wonder if there is another aproach to set init parameters and forget about web.xml... I need some init parameters easily readable from both actions and interceptors... struts.xml, struts.properties, ...
Thanks for any ideas, Ignacio -- View this message in context: http://www.nabble.com/Best-global-parameter-aproach-for-struts2-tp21698744p21698744.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org