public WOActionResults performActionNamed(String actionName)
{
        WOActionResults result = null;

        try
        {
          result = super.performActionNamed(actionName);
        }
        catch(Exception e)
        {
                if ((e instanceof NSForwardException) &&
(((NSForwardException)e).originalException() instanceof NoSuchMethodException))
                {
                        e = new RuntimeException("'" + actionName + "' was not 
found.  " +
                        "Did you type it incorrectly?");
                }
                
                result = WOApplication.application().handleException(e, 
context());
        }
        catch(Throwable t)
        {
result = WOApplication.application().handleException(new NSForwardException(t), context());
        }

        return result;
}



On Feb 12, 2007, at 9:39 AM, James Cicenia wrote:

What is the secret to handling a wrong url  ?

Where do I tell WebObjects say to go to the home page if someone types in a garbled direct action?

Thanks
James Cicenia

_______________________________________________
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/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

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

This email sent to [email protected]

Reply via email to