Protect Web application control flow
JavaWorld published an interesting Java Tip at http://www.javaworld.com/javaworld/javatips/jw-javatip136.html regarding protection of your web application control flow. It offers some interesting tips on using a synchronizer token pattern to effectively reduce duplicate submissions. Although it tends to be geared towards Struts applications, the concepts can apply to any valid MVC type flow control.
|
Return to Main Page
Comments
I've been meaning to check out the WebWork2 framework. I've briefly worked with Struts and I've also used my own customized MVC framework, but I need to get around to trying out WebWork2.
I implemented this token-based duplicate form submit prevention in WebWork2. There's actually 2 versions, one of which just returns an error code to show the error page, and the other of which saves the first request process in its final form and re-displays it for duplicate posts.
|