Re: Personalizing Error Page
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.