This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi all, Please Suggest how to approach the following problem, In an application(which is implemeted with JSPs and servlets) developed by me, the user has to fill up several pages with information to complete a task.The task gets executed when he finishes with the last page.That task is a bit complex(which involves accessing DB etc). After the task is completed the application responds with a thank you message. Now my problem is, if the user submits the last page several times(slow response due drop in net speed or something like that) before the task is completed,the task is redone that many times. How to overcome this repeatetive execution.If the task is still in execution, the application should ignore the request instead of redoing it. Thanx in advance Regards Kiran
Good news. You are not the first, who encountered this problem. It is mentioned for example in the J2EE-Design pattern books by sun. Favoured solution by mainstream is the token solution: Dave Soto explained it quite well for my taste: http://www.javaranch.com/ubb/Forum7/HTML/004412.html (search for token in this forum, and you will get some references among the most recent posts).
Hi , Iam not sure whether I understand correctly. But If the users submit the last page via a buttin(HTML) then u can disable after its hit once.. which will eventually avoid submitting the same again.