Re: Direct Action Redirect / error page ?
Re: Direct Action Redirect / error page ?
- Subject: Re: Direct Action Redirect / error page ?
- From: Chuck Hill <email@hidden>
- Date: Mon, 12 Feb 2007 09:46:36 -0800
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@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
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