<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<!-- 可以修改访问路径的后缀为do,action两个都可以 -->
<constant name="struts.action.extension" value="do,action"/>
<constant name="struts.i18n.encoding" value="UTF-8"/>
<constant name="struts.serve.static.browserCache" value="false"/>
<constant name="struts.configuration.xml.reload" value="true"/>
<!-- 开发模式下使用,这样可以打印出更详细的错误信息 -->
<constant name="struts.devMode" value="true"/>
<!-- 默认的视图主题 -->
<constant name="struts.ui.theme" value="simple"/>
<!-- 与spring集成时,指定由spring负责action对象的创建 -->
<constant name="struts.objectFactory" value="spring"/>
可设置该属性为false -->
<costant name="struts.enable.DynamicMethodlnvocation" value="false"/>
<constant name="struts.multipart.maxSize" value="10701096"/>
<package name="itcast" namespace="/control/employee" extends="struts-default">
<action name="list" class="cn.itcast.action.HelloWorldAction"
method="execute">
<!-- param是用来对HelloWorldAction中的savepath赋值的,值为/images -->
<param name="savepath">/images</param>
<result name="success">/WEB-INF/page/message.jsp</result>
</action>
</package>
</struts>
struts-default.xml
struts-plugin.xml
struts.xml
struts.properties
web.xml