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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top