DispatchAction 中的exccute

Posted on 2006-04-07 20:32 gong 阅读(515) 评论(1)  编辑  收藏 所属分类: struts
  DispatchAction 必须不写execute(... ...)方法, 否则反而有问题, 使用中我发现如果你写了exceute 方法 struts仍然首先调用改excute()方法, 这是即使你配置了 method 参数如 action="abcAction.do?method=load" 也无效, struts 仍然首先执行execute, 故DispatchAction中不要写execute( ... ...) 方法. 

Feedback

# re: DispatchAction 中的exccute   回复  更多评论   

2008-06-27 15:04 by tangtang
一般情况不写 特殊情况还是挺有用的 比如可以抽象出一个父类来 判断数据权限

只有注册用户登录后才能发表评论。


网站导航:
 

posts - 3, comments - 3, trackbacks - 0, articles - 0

Copyright © gong