gznofeng 发表于 2013-2-6 09:31:57

Struts2 Default Action for Page not found

Action DefaultUsually, 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> ...
页: [1]
查看完整版本: Struts2 Default Action for Page not found