<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<package name="default" namespace="/" extends="struts-default">
<default-action-ref name="index"></default-action-ref>
<action name="index">
<result>error.jsp</result>
</action>
<action name="helloworld_*" method="{1}" class="com.imooc.action.HelloWorldAction">
<result>/result.jsp</result>
<result name="dada">/{1}.jsp</result>
<result name="update">/{1}.jsp</result>
</action>
</package>
<!-- 把网址的后缀.action修改为.do -->
<constant name="struts.action.extension" value="do"></constant>
<!-- 感叹号方式设置动态方法调用 -->
<!--
<constant name="struts.enable.DynamicMethodInvocation" value="true"></constant>
-->
</struts>