通配符疑问
*_*
login_d 匹配
loginds 也匹配。。。。这是为什么呢?两个通配符之间不是还有下划线吗,但这个资源不是没有下划线吗
<action name="*_*" class="com.lyt.HelloAction2"> <result name="success">/hello.jsp</result> </action>
package com.lyt; import com.opensymphony.xwork2.ActionSupport; public class HelloAction2 extends ActionSupport { @Override public String execute() throws Exception { System.out.println("helloAction2--"); return SUCCESS; } public String hello() { System.out.println("hello2"); return SUCCESS; } }