Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

automatic form reset and resubmit

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I'm encountering a strange problem and am stumped. Some background...

A user submits a struts form and the action method that processes the submission can sometimes take more than 3-4 minutes to complete (this is normal). For those submissions that take less than about 3 minutes or so, everything functions as expected. For those submissions that take more than about 3 minutes to process, the request processor seems to automatically call reset() on the form and then fire off the action method AGAIN as witnessed by both logger statements printing in the reset() method and the action method. The first request does finish as expected but the second request if prevented from running (as to not interfere with the first) and I show an error message to the user. This behavior seems very strange to me and there's nothing in the code that would explicitly do this. The version of Struts that I'm using is 1.1.

I'm mainly just curious if anyone has seen behavior like this and has any thoughts on what would cause this to happen. Initial google searches have turned up nothing so I'm thinking it's some sort of error due to ignorance on my part.

Thanks in advance,

Geoff
 
Geoff Holden
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Update:

This problem only seems to occur in Firefox (3.5.3) and not IE (7 or 8). I'm going to dig around a big more now that I have this information but in case others were getting the same problem, I wanted to post this update. It turns out this may not be a Struts only specific problem.

Geoff
 
What's wrong? Where are you going? Stop! Read this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic