File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts form which submit many times... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts form which submit many times..." Watch "Struts form which submit many times..." New topic

Struts form which submit many times...

Serge Montet

Joined: Nov 15, 2007
Posts: 1
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.
I agree. Here's the link:
subject: Struts form which submit many times...
It's not a secret anymore!