This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hello, I am a beginner in Java technologies... I am working on a Struts project with J2EE. It's a web site which is creating with Xen API some virtual machines. There is a create machine form which asks for example the OS wanted, memory size, etc. Then it is executed by JMS in a queue.
Here are Struts actions for creating a machine :
Now I am being asked to make a validation workflow. That is to say when someone asks for a virtual machine creation, the admin receives an email and click on it if all is ok. Example for machine id=10
Then the web page viewvirtualserver.jsp is launched, it displays all manipulation possible (start-up, shut-down etc).
For some technical reasons, this page is refreshing every 10s. And now the problem : the creation form is submitted every 10s with the refreshing of that jsp page...!!! I cannot see why :
The action of validation :
How can I avoid this problem in Struts or jsp code ??