• 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: Personalizing Error Page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Personalizing Error Page


  • Subject: Re: Personalizing Error Page
  • From: Kaj Hejer <email@hidden>
  • Date: Mon, 16 Feb 2004 18:10:03 +0100

At 17:50 +0100 16-02-04, Dev WO wrote:
Hi All,
I'd like to personalize the error page in a Web App.
I know I have to create a new component, then tell WO to display this
component as the error page.
So I wrote in my Application.java Class:

	public WOResponse handlePageRestorationErrorInContext(WOContext
aContext) {
		WOComponent nextPage;
		nextPage = (Main)pageWithName("Main", aContext);
		return nextPage.generateResponse();
	}


But it didn't gave me the "Main" component??! it keeps on returning the regular "your session as timed out" What did I do wrong?


Hi!

Try to add the following method in your Application.java:

public WOResponse handleException(Exception exception, WOContext context)





-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Personalizing Error Page (From: Dev WO <email@hidden>)

  • Prev by Date: Re: Personalizing Error Page
  • Next by Date: Re: Personalizing Error Page
  • Previous by thread: Re: Personalizing Error Page
  • Next by thread: Re: Personalizing Error Page
  • Index(es):
    • Date
    • Thread