<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
	"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
	"http://struts.apache.org/dtds/struts-2.1.7.dtd">
<struts>
	<constant name="struts.i18n.encoding" value="UTF-8" />
	
	<constant name="struts.action.extension" value="action" />
	
	<constant name="struts.serve.static.browserCache" value="false" />
	
	<constant name="struts.configuration.xml.reload" value="true" />
	
	<constant name="struts.multipart.saveDir" value="/temp"/>
	
	<constant name="struts.multipart.maxSize" value="3048576000"/>
	
	<constant name="struts.i18n.reload" value="true" />
	
	<!-- 指定struts2应用处于开发阶段 -->
	<constant name="struts.devMode" value="true" />
	
	<constant name="struts.ui.theme" value="simple" />
	<constant name="struts.objectFactory" value="spring" />
	
	<!-- struts2框架按照如下顺序加载常量文件struts-default.xml、struts-plugin.xml、struts.xml、struts.properties、web.xml -->
	<include file="struts-default.xml"></include>
	<include file="struts-plugin.xml"></include>
	<!-- 包含文件 -->
	<include file="struts2/*-struts.xml"></include>
	<!-- 
	<constant name="struts.custom.i18n.resources" value="Performance" />
	 -->
	<!--定义全局Result -->
	<package name="default" namespace="/" extends="struts-default">
		<global-results>
			<result name="login">/pages/common/admin.jsp</result>
		</global-results>
		<action name="*">
			<result>/pages/common/{1}.jsp</result>
		</action>
		<action name="login">
			<result>/pages/common/admin.jsp</result>
		</action>
	</package>
</struts>