躺在沙滩上的小猪

快乐的每一天

[webwork]Default Action

http://wiki.opensymphony.com/display/WW/Action+configuration

Since Webwork 2.2.1 you are also able to specify a default action to be executed when no other action is matched in the xwork.xml. This feature is provided mainly to eliminate the need to create an action class and/or element for very simple or similar results.  The default action name can be set inside the package element like below:

<default-action-ref name="simpleViewResultAction">

Caution

This feature should be configured such that there is only one default action per namespace. Therefore if you have multiple packages declaring a default action with the same namespace, it is not guaranteed which action will be the default.

posted on 2006-02-10 20:27 martin xus 阅读(132) 评论(0)  编辑  收藏 所属分类: webwork/xwork