Find the files struts.properties
struts.xml
in the project and in deployment. Check that every found file contains necessary changes before run and after run. And struts.xml
doesn't contain <constant name="struts.ui.theme"
. If it doesn't help try to search disk or computer for keyword struts.ui.theme
. HTH
Struts 2: ui.theme changes in struts.properties are not getting reflected
-
13-12-2021 - |
Question
I am creating a project using maven as below
mvn archetype:generate -B -DgroupId=com.myApplication -DartifactId=MyApplication -
DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -
DarchetypeVersion=2.3.7
After that in struts.properties
file I am changing
struts.ui.theme=xhtml
to
struts.ui.theme=simple
but when I run the application the simple
theme doesn't apply.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow