> >> Hi, > >> > >> Do you have a solution to disable devMode in production environment? > >> Based on some ENV variable or something? > > > > Yes, we register a configProvider in web.xml which disables devMode based > > on a system property. > > Maybe it would be good to add such feature directly to Struts Core? > >
Yeah, that would surly make it simpler for quite a lot of people. How shall we call that property? struts.environment? struts.staging? struts.production? What value(s) shall we use? Boolean? Strings like 'prod', 'test', 'dev', 'qa', 'staging'? Make name and value(s) configurable? At work we have 4 staging environments thus our property is not boolean. regards, Christoph This Email was scanned by Sophos Anti Virus