您的位置:首页 > 编程语言 > Java开发

struts2 action 标签中的method方法

2014-06-05 21:50 197 查看
DefaultActionInvocation
will try to call also 
doDelete
if it couldn't find 
delete
method in action's class.

<action name="delete" class="example.CrudAction" method="delete">


action中的方法名可以为delete,如果CrudAction类中找不到delete会去找doDelete方法

To use a postfix wildcard, just move the asterisk and add an underscore.

<action name="Crud_*" class="example.Crud" method="{1}">使用后缀通配符,要用下划线和星号
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  struts2
相关文章推荐