Something like this may help: <package name="myPackage" extends="default" namespace="/my/package/path"> <default-action-ref name="myDefaultAction"/>
<action name="myDefaultAction" class="myActionClass"> <result name="success">/pages/defaultPage.jsp</result> </action> </package> You could have myDefaultAction throw an exception for your exception mappings, or you could simply have the "defaultPage" in that mapping be an appropriate error page. -Brian On Tue, Nov 10, 2009 at 3:17 AM, RogerV <roger.var...@googlemail.com> wrote: > > Could someone just confirm what sort of exception I should be catching to > intercept "There is no Action mapped for namespace /secure and action name" > errors. I've currently got; > > <global-exception-mappings> > <exception-mapping exception="java.lang.Exception" > result="login"/> > </global-exception-mappings> > > and > > <constant name="struts.devMode" value="false" /> > > which I assumed would catch everything, but if I enter gibberish into the > browser url box, I still get the "No Action mapped ..." message in the > server logs and Tomcats 404 page in the browser. Using > config-browser/index.action confirms that Struts is recognising the > mapping, > but it is not catching it. > > Regards > -- > View this message in context: > http://old.nabble.com/Problem-with-Global-Exceptions-tp26280416p26280416.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >