我使用Maven創建項目如下的Struts 2:在struts.properties ui.theme變化沒有得到體現
mvn archetype:generate -B -DgroupId=com.myApplication -DartifactId=MyApplication -
DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -
DarchetypeVersion=2.3.7
後,在struts.properties
文件,我改變
struts.ui.theme=xhtml
到
struts.ui.theme=simple
但是當我運行應用程序simple
主題不應用。
嘗試在struts.xml中定義它' '。另外你如何檢查簡單的主題不適用? –
它爲控件創建默認的表格結構與爲theme = xhtml – jaychapani