• 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: Direct Action Redirect / error page ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Direct Action Redirect / error page ? (From: James Cicenia <email@hidden>)

  • Prev by Date: Direct Action Redirect / error page ?
  • Next by Date: Re: ERXPatcher and component templates
  • Previous by thread: Direct Action Redirect / error page ?
  • Next by thread: Creating a Detail Interface for the To-Many Relationship
  • Index(es):
    • Date
    • Thread