• 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 and refresh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: direct action and refresh


  • Subject: Re: direct action and refresh
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 23 Dec 2003 11:54:56 -0800
  • Organization: Global Village Consulting, Inc.

A new instance of DirectAction is created for each DA request. It is the nature of a DA to be stateless.

The only thing you can do is to check the database for a matching record and reject the request is one is found.


Chuck


Gino Pacitti wrote:

Hi all

I have a direct action with a process that saved a form submission to a database.

This all works well but if the user refreshes the page the same information is used to again create a new record?

How can I avoid a refresh and the same directAction being used?

I have tried a few things to keep state but the direct action class seems to be re-created everytime and so i loose any references.

Best

Gino
_______________________________________________
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.

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net

Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
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: 
 >direct action and refresh (From: Gino Pacitti <email@hidden>)

  • Prev by Date: direct action and refresh
  • Next by Date: additional JVM options in WO 5.2.1 OSX ProjectBuilder
  • Previous by thread: direct action and refresh
  • Next by thread: additional JVM options in WO 5.2.1 OSX ProjectBuilder
  • Index(es):
    • Date
    • Thread