Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts form which submit many times...  RSS feed

Serge Montet
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ??

Thanks a lot.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!