Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling invalid URLs



How about with this method that can be found in WOApplication:

public WOResponse handleSessionRestorationErrorInContext(WOContext aContext)
Invoked when a session (WOSession) instance cannot be restored, which typically happens when the session times out. The default behavior displays a page with debugging information.
Override this method to display a more user-friendly error page.


Parameters:
aContext - the context of the transaction
Returns:
a WOResponse containing a page with debugging information
See Also:
handleException(java.lang.Exception, com.webobjects.appserver.WOContext), handlePageRestorationErrorInContext(com.webobjects.appserver.WOContext), handleSessionCreationErrorInContext(com.webobjects.appserver.WOContext)



On Mar 29, 2007, at 12:42 PM, Karl Gretton wrote:

Hi,

We give users the ability to embed URLs in their WO content.  The problem we have is that they sometimes put in bad URLs such as:


This results in an exception: handleSessionRestorationErrorInContext

Does anyone know how to handle this issue and stop it from trashing the session?

Karl

 _______________________________________________
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

--
Robert Walker



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden

References: 
 >Handling invalid URLs (From: Karl Gretton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.