Hello, In our application, when the user submit the form, we have
an xpl file that call a webservice to store the data in a database, and if
there is no problem, the page-flow redirect to the start of application. And here, if the user press F5 (refresh), previous form is
submitted again, and is duplicated in database. How to forbid that ? Thank You. Julien. Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a respeitar o ambiente não imprimindo este correio electrónico. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Julien,
I think that a pretty secure way to prevent this is to generate a UUID in the form you serve to the user (e.g. stored in an instance on xforms-model-construct-done). When users save, you also store that UUID, and check that the previous save was done with a different UUID. If the previous save was done with the same UUID, then you have a case where the user is trying to save twice from the same form. Alex On Mon, Apr 12, 2010 at 7:34 AM, Bittard, Julien <[hidden email]> wrote: > Hello, > > > > In our application, when the user submit the form, we have an xpl file that > call a webservice to store the data in a database, and if there is no > problem, the page-flow redirect to the start of application. > > And here, if the user press F5 (refresh), previous form is submitted again, > and is duplicated in database. > > How to forbid that ? > > > > Thank You. > > > > Julien. > > Please help Logica to respect the environment by not printing this email / > Pour contribuer comme Logica au respect de l'environnement, merci de ne pas > imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen > Sie so Logica dabei, die Umwelt zu schützen. / Por favor ajude a Logica a > respeitar o ambiente não imprimindo este correio electrónico. This e-mail > and any attachment is for authorised use by the intended recipient(s) only. > It may contain proprietary material, confidential information and/or be > subject to legal privilege. It should not be copied, disclosed to, retained > or used by, any other party. If you are not an intended recipient then > please promptly delete this e-mail and any attachment and all copies and > inform the sender. Thank you. > > -- > You receive this message as a subscriber of the [hidden email] mailing > list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
I am out of the office until 19th April *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
Free forum by Nabble | Edit this page |