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.
I am using struts and oracle in my application. After entering a new record in DB through a UI,I am showing a view page which display all the record's. If i press refresh this page then it is again inserting a value in database. I dont know why it is inserting a record in DB when I am trying to refresh a page. I think forming is submiting while refreshing a page .
You are probably resubmitting the form. Struts has a transaction token built in that could solve your problem, or after the original submittal the success page could be a page that uses html to forward to another page.