struts2常量配置

1.action后缀

<constant name="struts.action.extension" value="do"/>

2.浏览器缓存,默认为true,开发阶段最好设置为false

<constant name="struts.server.static.browsercache" value="false"/>

3.重新加载struts配置文件,开发阶段设置为true

struts.configuration.xml.reload

4.设置为开发阶段,可以打印更相信的出错信息

struts.devMode

5.编码

struts.i18n.encoding 设为utf-8相当于request.setCharacterEncoding()

6.struts.ui.theme一般设为simple

7.struts.objectFacotry用在整合spring时,Action对象由spring容器负责创建。

posted @ 2011-12-26 20:40  tazi  阅读(219)  评论(0编辑  收藏  举报