• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Intercepting (ERX/WO)DirectActionRequestHandler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Intercepting (ERX/WO)DirectActionRequestHandler
      • From: Johnny Miller <email@hidden>
References: 
 >Intercepting (ERX/WO)DirectActionRequestHandler (From: Jon Nolan <email@hidden>)
 >Re: Intercepting (ERX/WO)DirectActionRequestHandler (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Snow Leopard and TimeZones
  • Next by Date: Re: War deploy; maven archetypes problems; web.xml filtering
  • Previous by thread: Re: Intercepting (ERX/WO)DirectActionRequestHandler
  • Next by thread: Re: Intercepting (ERX/WO)DirectActionRequestHandler
  • Index(es):
    • Date
    • Thread