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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]