Re: [S2] Access to devMode value

2007-01-12 Thread Dirk Bergstrom
Don Brown was heard to exclaim, On 01/12/07 18:01: > If using the latest code, What's "latest code"? Subversion trunk, or 2.0.1? Probably doesn't matter, since I'm waiting on Constant Configuration, which will be in the next version. That will allow me to define devMode in an xml entity that I

Re: [S2] Access to devMode value

2007-01-12 Thread Don Brown
If using the latest code, you can have it injected into your action via: @Inject(StrutsConstants.STRUTS_DEVMODE) public void setDevMode(String mode) { this.devMode = "true".equals(mode); } This holds true for any configuration value or internal framework object. Don On 1/12/07, Dirk Bergstrom