Struts2中的OGNL通配符

Posted wdnnccey

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Struts2中的OGNL通配符相关的知识,希望对你有一定的参考价值。

<action name="*_*" class="action.{1}Action" method="{2}">

匹配,第一个*匹配{1},第二个*匹配{2}
例如:User_login,那么就是class="com.test.action.UserAction" method="login"

分别是action 和login方法。

 


以上是关于Struts2中的OGNL通配符的主要内容,如果未能解决你的问题,请参考以下文章

(转) STRUTS2中的OGNL

关于Struts2中的ognl-2.6.11.jar和ognl-2.7.3.jar解决思路

第三章Struts2 Action中动态方法调用通配符的使用

(补充)9.Struts2中的OGNL表达式

Struts2使用OGNL遍历各种map总结

Struts2(Ognl)