I recently checked in a change that would log a warning if mapping.findForward was called with a forward name that wasn't recognized. This change didn't make it to the 1.2.7 release, but is available from nightly builds. Apart from that, it wouldn't be too hard to customize/extend your Struts installation to handle it the way you'd wish. You can use a custom request processor that'd log or redirect or even use a custom ActionMapping class that can intercept findForward() calls.
Hubert On 6/13/05, Dan Tenenbaum <[EMAIL PROTECTED]> wrote: > My codebase has a lot of lines like this in struts actions: > return mapping.findForward("foo"); > > If I make a typo and it turns out that "foo" is not a valid forward > according to the struts config file, when I hit the action in the > browser, I get a blank page. Not my designated error page. > > Is there some sort of struts-centric way to ensure that an exception > is thrown and my error page appears? I just want to know if there is > an existing mechanism to do this. I could easily write a method to do > it (to be called instead of mapping.findForward()) but it seems that > this is something Struts should handle. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]