首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

未定义Action的处置/默认Action

2012-09-21 
未定义Action的处理/默认ActionAction DefaultUsually, if an action is requested, and the framework ca

未定义Action的处理/默认Action

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>

热点排行