On Wed, Oct 8, 2008 at 12:56 PM, stanlick <[EMAIL PROTECTED]> wrote: > > You read my mind bro! CodebehindUnknownHandler was the only class > implementing UnknownHandler! You know, this " > http://struts.apache.org/2.x/docs/plugins.html Extension Points " table > really needs updating. Would it be safe to search the code base for > @Inject? > > Scott >
That would probably give you an idea, but @Inject is used for injecting values as well as service implementations. Start a JIRA and just have people paste them in there as they find 'em. -Wes > > > > Wes Wannemacher wrote: >> >> On Wed, Oct 8, 2008 at 12:45 PM, stanlick <[EMAIL PROTECTED]> wrote: >>> >>> I decided to pass up lunch and crack the code open. The >>> DefaultActionProxy >>> tries to find the namespace/action and if it cannot, searches for the >>> UnknownHandler rather than throw a 404. I have discovered that adding >>> the >>> >>> <default-action-ref name="logger"/> >>> >>> works, but I am going to look into how to nominate an unknownHandler. >>> Probably another undocumented extension point! >>> >>> Peace, >>> Scott >>> >> >> Take a look at the codebehind plugin. IIRC, the zero config plugins >> set the unknown handler to do what they do. >> >> -Wes >> >> >>> >>> >>> Wes Wannemacher wrote: >>>> >>>> Scott, >>>> >>>> IIRC, this will only handle exceptions thrown by your Action. If no >>>> action is found, you are not going to make it far enough to get your >>>> "exceptionLogger" result. >>>> >>>> http://struts.apache.org/2.x/docs/exception-configuration.html >>>> >>>> -Wes >>>> >>>> PS - http://manning.com/wannemacher/ (whip out that AMEX and get on it!) >>>> >>>> On Wed, Oct 8, 2008 at 12:27 PM, stanlick <[EMAIL PROTECTED]> wrote: >>>>> >>>>> I have an exception configuration as follows: >>>>> >>>>> <global-exception-mappings> >>>>> <exception-mapping exception="java.lang.Throwable" >>>>> result="exceptionLogger"/> >>>>> </global-exception-mappings> >>>>> >>>>> If an action throws an exception my logger works fine. However, if the >>>>> Struts DefaultActionProxy is unable to locate an action class/mapping >>>>> and >>>>> throws its ConfigurationException, I get a stacktrace in the browser! >>>>> Any >>>>> clues? >>>>> >>>>> >>>>> -- >>>>> View this message in context: >>>>> http://www.nabble.com/Global-exception-mapping-glitch-tp19882441p19882441.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] >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> Wesley Wannemacher >>>> President, Head Engineer/Consultant >>>> WanTii, Inc. >>>> http://www.wantii.com >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/Global-exception-mapping-glitch-tp19882441p19882804.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] >>> >>> >> >> >> >> -- >> Wesley Wannemacher >> President, Head Engineer/Consultant >> WanTii, Inc. >> http://www.wantii.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Global-exception-mapping-glitch-tp19882441p19883014.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] > > -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]