<!-- 指定Web應(yīng)用的默認編碼集,相當于調(diào)用 HttpServletRequest的 setCharacterEncoding方法 -->
<constant name="struts.i18n.encoding" value="UTF-8" />
<!--
該屬性指定需要Struts 2處理的請求后綴,該屬性的默認值是action,即所有匹配*.action的請求都由Struts 2處理。
如果用戶需要指定多個請求后綴,則多個后綴之間以英文逗號(,)隔開。
-->
<constant name="struts.action.extension" value="do" />
<!-- 設(shè)置瀏覽器是否緩存靜態(tài)內(nèi)容,默認值為true(生產(chǎn)環(huán)境下使用),開發(fā)階段最好關(guān)閉 -->
<constant name="struts.serve.static.browserCache " value="false" />
<!-- 當 struts的配置文件修改后,系統(tǒng)是否自動重新加載該文件,默認值為false(生產(chǎn)環(huán)境下使用),開發(fā)階段最好打開 -->
<constant name="struts.configuration.xml.reload" value="true" />
<!-- 開發(fā)模式下使用,這樣可以打印出更詳細的錯誤信息 -->
<constant name="struts.devMode" value="true" />
<!-- 默認的視圖主題 -->
<constant name="struts.ui.theme" value="simple" />
<!-- 該屬性指定Struts 2中的action由Spring容器創(chuàng)建 -->
<constant name="struts.objectFactory" value="spring" />
<constant name="struts.i18n.encoding" value="UTF-8" />
<!--
該屬性指定需要Struts 2處理的請求后綴,該屬性的默認值是action,即所有匹配*.action的請求都由Struts 2處理。
如果用戶需要指定多個請求后綴,則多個后綴之間以英文逗號(,)隔開。
-->
<constant name="struts.action.extension" value="do" />
<!-- 設(shè)置瀏覽器是否緩存靜態(tài)內(nèi)容,默認值為true(生產(chǎn)環(huán)境下使用),開發(fā)階段最好關(guān)閉 -->
<constant name="struts.serve.static.browserCache " value="false" />
<!-- 當 struts的配置文件修改后,系統(tǒng)是否自動重新加載該文件,默認值為false(生產(chǎn)環(huán)境下使用),開發(fā)階段最好打開 -->
<constant name="struts.configuration.xml.reload" value="true" />
<!-- 開發(fā)模式下使用,這樣可以打印出更詳細的錯誤信息 -->
<constant name="struts.devMode" value="true" />
<!-- 默認的視圖主題 -->
<constant name="struts.ui.theme" value="simple" />
<!-- 該屬性指定Struts 2中的action由Spring容器創(chuàng)建 -->
<constant name="struts.objectFactory" value="spring" />
來自于:http://wing123.javaeye.com/blog/352596