---
title: "struts2主struts文件加载其他struts文件"
author: "txf2004"
date: "2013-01-30T15:19:00Z"
tags: []
slug: "struts2-struts-struts"
draft: false
lastmod: "2013-02-02T20:35:57Z"
id: 1783848
url: "https://txf2004.iteye.com/blog/1783848"
---

&lt;constant name="struts.devMode" value="true" /&gt;&lt;!-- 开发模式修改后，tomcat自动重启 --&gt;  
&lt;constant name="struts.i18n.encoding" value="utf-8" /&gt;&lt;!---设置编码-&gt;  
&lt;constant name="struts.enable.DynamicMethodInvocation" value="false" /&gt;  
&lt;constant name="struts.ognl.allowStaticMethodAccess" value="true" /&gt;&lt;!-ognl允许访问Action中的静态属性 --&gt;  
&lt;include file="com/ognl/action/ognl.xml" /&gt;&lt;!-- 将com.ognl.action包下面的ognl.xml包含进来 --&gt;