POST request / validation of page reloading.

43 views
Skip to first unread message

michaelCH

unread,
May 19, 2009, 9:41:55 AM5/19/09
to rife-users
Hello Geert!

I have question related to the POST request processing.
I am concerned about use case when user can send twice the same POST
request by reloading the page.

Could you provide me some hints how to validate it using rife,
Element's methods ?
Do I need to check submission context, etc ?

Best regards,
Michael Chudas.

Geert Bevin

unread,
May 25, 2009, 1:37:01 AM5/25/09
to rife-...@googlegroups.com
Hi,

there are several ways of doing this.

You can for instance redirect after post by setting up a 'redirect'
exit. This makes it intuitive to trigger the exit, and the redirection
will happen automatically.

Another possibility is to simply use continuations and to remove the
active continuations tree when you're doing processing. People that
press back and re-submit will not have the continuation to resume
anymore, and they will to started all over again at the beginning of
the interaction with the form(s).

Hope this helps,

Geert
--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com

michaelCH

unread,
Jun 18, 2009, 5:23:09 PM6/18/09
to rife-users
Hi Geert!

My response is late but thanks for your answers.

Best regards,
Michael.
> Terracotta -http://www.terracotta.org
> Uwyn "Use what you need" -http://uwyn.com
Reply all
Reply to author
Forward
0 new messages