You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lorenzo Bernacchioni <lo...@gmail.com> on 2012/07/26 18:55:42 UTC

set struts.devMode programatically?

Hi, I had a similar problem, but I want to handle it at bootstrap time.
I used the DispatcherListener<http://struts.apache.org/2.0.14/struts2-core/apidocs/org/apache/struts2/dispatcher/DispatcherListener.html>available
for the
Dispatcher<http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/Dispatcher.html>entity
during start-up.
I wrote a post about how programmatically change the configuration in
Struts2:

http://yoprogrammer.wordpress.com/2012/07/26/struts2-programmatically-change-devmode-configuration/

cheers,
lorenzo