I've been searching high and low for a solution to this simple problem, but I can't find anything:
How can I get Struts2 to handle non-existing actions, globally? I thought a global exception mapping would do it, but it doesn't seem like an exception is being thrown when an action can't be found... or maybe one is, but it's handled by the dispatcher? I've also tried a wildcard action mapping, but this is insufficient as it only seems to match missing actions within its respective namespace. If a missing action does throw an exception, may someone explain why this struts.xml configuration is failing to catch it: <struts> <constant name="struts.devMode" value="false" /> <constant name="struts.action.extension" value="" /> <constant name="struts.enable.SlashesInActionNames" value="true" /> <package name="default" namespace="/" extends="struts-default"> <global-results> <result name="error">/error/404.html</result> </global-results> <global-exception-mappings> <exception-mapping exception="java.lang.Exception" result="error" /> </global-exception-mappings> <action name="Index"> <result>/index.html</result> </action> </package> </struts> Thanks! -- delsvr -- View this message in context: http://www.nabble.com/Struts2%3A-Handling-a-Missing-Action-%28404%29-tp20400822p20400822.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]