• 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: Catching an exception thrown by invalid IP address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Catching an exception thrown by invalid IP address


  • Subject: RE: Catching an exception thrown by invalid IP address
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Fri, 11 Jun 2004 13:54:06 +0100

From: "Tanmoy Roy" <email@hidden>
To: "WO DEV LIST (E-mail)" <email@hidden>
Subject: Catching an exception thrown by invalid IP address
Date: Fri, 11 Jun 2004 17:22:49 +0530

Hi all,

I am facing pecuiliar problem. I have web page which is having a submit button which inserts data from user into database. On successful submission the user will be directed to a new "Thank You" page. Upto this point everything is working fine. But what I want is that in case the "Thank You" page is not available

Why would this not be available if it is a page/component in the app and you have code that point to this by pageWithName()?


then I want to show a message that will say "Subscription Submittted Successfully" which I have placed in a WOConditional.

I suspect you have put that conditional in the Thank you page, if so it's not going to show if the page is going to throw a 404 so that's pointless.

But I am unable to catch the exception when the designated URL page does not exist. All it shows up is a blank page with the usual error messages for not finding the URL.

as I said above...

What I am doing is the I have blank.wo containing a blank.html In this html's metatag I have specified that after 1 second the page will redirect to the "Thank You" page . I am calling this blank HTML on submission by the pageWithName() function .

have you had a look at WOMetaRefresh(WOContext aContext); it'll be more dynamic for you

I am a newbie in WO . Any suggestion will be saver.

It may be that the url you are setting in the HTML metaRefresh tag is incorrect, try looking at Class WOContext in the API for ways of using a dynamic url

HTH
Jonathan :^)



Please help.

Thanks and Regards

Tanmoy Roy
_______________________________________________
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.



_________________________________________________________________
Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger
_______________________________________________
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.



  • Prev by Date: Catching an exception thrown by invalid IP address
  • Next by Date: Problems updating a row
  • Previous by thread: Catching an exception thrown by invalid IP address
  • Next by thread: Re: Catching an exception thrown by invalid IP address
  • Index(es):
    • Date
    • Thread