Re: Setting struts.devMode only in struts.xml?

Lukasz Lenart <[email protected]> Thu, 29 May 2025 11:31:22 +0200
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkOWKcBpkxSyg8Hw0EfHiuP7ZnBORm5w+WTT-M-DdCuoMg@mail.gmail.com>
czw., 29 maj 2025 o 11:22 Ute Kaiser <[email protected]> napisał(a):
>
> I face the issue that I have to change my struts.xml any time I want to deploy from dev environment to test or production environment.
> Either struts.devMode value=true or false. This might lead to deploying devMode to production by accident.
> Is there an alternative place to set devMode more flexible?
>
> I tried:
> Eclipse (2024-09) Wildfly33 Server Launch Configuration VM arguments -Dstruts.devMode=true but no effect.
> Using ant for build.

You can use value substitution
https://struts.apache.org/core-developers/constant-configuration#value-substitution


Cheers
Łukasz