<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<struts>
<!-- 开启struts2的开发模式 -->
<constant name="struts.devMode" value="true" />
<!-- 分包 -->
<!-- <package name="one" extends="struts-default" namespace="/">
访问的路径
<action name="hello" >
name不写的话,默认就是sccess
<result name="success">/index.jsp</result>
</action>
class 对应是你书写的action类
<action name="helloStruts" class="com.my.action.helloAction" method="execute">
name 对应action返回的值
<result name="sayhello">/two.jsp</result>
<result name="sayhello1">/two2.jsp</result>
</action>
</package> -->
</struts>