Re: direct action and refresh
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.