• 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: 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


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

  • Prev by Date: Re: More path issues when developing with Eclipse vs old XCode
  • Next by Date: Re: Snow Leopard and TimeZones
  • Previous by thread: Intercepting (ERX/WO)DirectActionRequestHandler
  • Next by thread: Re: Intercepting (ERX/WO)DirectActionRequestHandler
  • Index(es):
    • Date
    • Thread