Transaction Integrity Problem with MVC
I have develop a web application follows J2EE design pattern like Front Controller and others in J2EE Petstore Example. I'm not using any EJB,only serlvet , JSP and Javabeans and implement Command Pattern in the framework.
It has a entry form and after i submit the form , the controller servlet will request dispatch to the next screen. If i reload the page , it will insert again and cause duplicate data was inserted to database.
According to Manning -WebDevelopment With JavaServerPages Chapter 9 , they have implement CommandToken to control the transaction integrity.
In the J2EE PetStore, how the FlowHandler can handle this problem of page reloading ?
Any suggestion or ideas?

