Re: Intercepting (ERX/WO)DirectActionRequestHandler
Re: Intercepting (ERX/WO)DirectActionRequestHandler
- Subject: Re: Intercepting (ERX/WO)DirectActionRequestHandler
- From: Chuck Hill <email@hidden>
- Date: Thu, 22 Oct 2009 18:11:34 -0700
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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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