<action name="*create-*" method="{1}create" class="{2}Action">
<result name="success">/view/{2}/{2}-create.jsp</result>
<result name="input">/view/{2}/{2}-create.jsp</result>
</action>
<action name="*update-*" method="{1}update" class="{2}Action">
<result name="success">/view/{2}/{2}-detail.jsp</result>
<result name="input">/view/{2}/{2}-edit.jsp</result>
</action>
<action name="detail-*" method="detail" class="{1}Action">
<result name="success">/view/{1}/{1}-detail.jsp</result>
</action>
<action name="list-*" method="list" class="{1}Action">
<result name="success">/view/{1}/{1}-list.jsp</result>
</action>
<action name="xml-*" method="xml" class="{1}Action">
<result name="success">/view/success.jsp</result>
</action>
请求的时候地址分别是:
create-user.do,docreate-user.do
update-user.do,doupdate-user.do
...
xml-*配置是用来返回XML结果的。