struts.xml中的配置:
<action name="user_*" class="userAction" method="{1}">
<result name="registPage">/WEB-INF/jsp/regist.jsp</result>
</action>
/*
此时method={1}中的{1}代表user_中的,即加入你访问路径是/user_registPage.action,则此刻访问的是该Action中的registPage方法。同理,如果通配符* == delete,则就访问的是delete方法。
当name中含有多个通配符的时候,method={2} ,就代表第二个通配符,同理以此类推。
这种方式更灵活的简化了struts.xml的配置文件。
*/