Action Default
Usually, if an action is requested, and the framework can't map the request to an action name, the result will be the usual "404 - Page not found" error. But, if you would prefer that an omnibus action handle any unmatched requests, you can specify a default action. If no other action matches, the default action is used instead.
<package name="Hello" extends="action-default">
<default-action-ref name="UnderConstruction">
<action name="UnderConstruction">
<result>/UnderConstruction.jsp</result>
</action>
本文介绍了一种框架配置,当请求的Action未找到时,默认调用指定的备用Action,避免出现404错误。通过配置<default-action-refname>元素可以实现这一功能。
1480

被折叠的 条评论
为什么被折叠?



