Re: Intercepting (ERX/WO)DirectActionRequestHandler
Re: Intercepting (ERX/WO)DirectActionRequestHandler
- Subject: Re: Intercepting (ERX/WO)DirectActionRequestHandler
- From: Jon Nolan <email@hidden>
- Date: Thu, 22 Oct 2009 19:24:14 -0600
- Organization: Loch Garman
Chuck Hill wrote:
On Oct 22, 2009, at 4:17 PM, Jon Nolan wrote:
Hi,
Is there a preferred way to intercept request handling so as to avoid
messages such as the one below:
Oct 22 17:00:59 MyApp[54589] (ERXApplication.java:1516) ERROR
er.extensions.appserver.ERXApplication - Exception caught:
<er.extensions.appserver.ERXDirectActionRequestHandler> Couldn't
locate action class named 'images'.
I know why the request URL is bad and there's nothing I can do about
that. What I would like to do is return something like
MyDirectActionSubclass.handleMalformedActionRequestAction() with
specialized behavior.
You would need to write your own request handler for that. The
intended way is to implement this in your Application class:
public WOResponse handleActionRequestError(WORequest aRequest,
Exception exception, String reason, WORequestHandler aHandler, String
actionClassName, String actionName, Class actionClass, WOAction
actionInstance)
and look for a "ClassNotFoundError" as the reason.
Chuck
Perfect. Thanks Chuck.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden