<struts>
<!-- value控制 url访问action的后缀 -->
<constant name="struts.action.extension" value="html,,do,jsp,action"/>
<constant name="struts.devMode" value="true"/>
<package name="test" namespace="/hello" extends="struts-default">
<action name="user_*" class="com.yf.action.HelloAction" method="{1}">
<result name="success">/index.jsp</result>
</action>
</package>
</struts>
1.浏览器输入url http://127.0.0.1:8080/struts02/hello/user_hello
2.在struts.xml中 搜索 namespace为"/hello"的package
3.在package中 搜索name为"user_hello"的action
4.创建action对应的class中的类的对象
5.调用该对象的 execute()方法
6.根据execute()的返回值 去result中 寻找匹配的name 跳转到相应的页面