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.
My aim is to display expected page to user and process his request only once despite double submits.
I am able to detect double submit using Token Synchronization and now my porblem is to handle the duplicat requests after I detect them. Please see the code below.
I tried saving the ServletResponse in session and locking it, when done with the first request other waiting threads would pick up the saved response object and will try to write its content through the response object of last submitted request.
But the successful If condition doesn't work as I thought of working...instead it displays blank page.
Joined: Jan 24, 2005
Any input on this one please !! Would be much appriciated.