steps1-->Struct2-struts.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd"
>

<struts>
<constant name="struts.devMode" value="false"/>是否自动加载配置文件
<constant name="struts.i18n.encoding" value="UTF-8"/>
<constant name="struts.enable.DynamicMethodInvocation" value="false"/>动态方法调用,为true时,
                        就可以在struts.xml配置“*”的通配符,来调用action里的方法(下面介绍)
<constant name="struts.objectFactory" value="spring"/>说明Struts2的 对象池创建工厂为Spring的对象池
<constant name="struts.multipart.maxSize" value="1000000000" />上传文件最大值
<package name="power-default" namespace="/" extends="struts-default">
<global-results>
<result name="jsonStringPage">/pages/jsonString.jsp</result>
<result name="error">/error.jsp</result>
<result name="invalid.token">/error.jsp</result>
<result name="ifsuccess">/psychosis/ifsuccess.jsp</result>
</global-results>
<global-exception-mappings>
<exception-mapping result="error" exception="java.lang.Throwable"/>
</global-exception-mappings>
</package>


<include file="struts-admin.xml"/>
<include file="struts-app.xml"/>
<include file="struts-archives.xml"/>
<include file="struts-print.xml"/>


</struts>



你可能感兴趣的:(struts.xml)