Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Can any one help me in solving form submision

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,

How to make sure that a form is not submitted twice?

I came to know that there are tokens in struts 1.1 which help in solving my problem. But Iam not able to understand where to put this saveToken() and resetToken() and isTokenValid() in my Action class, please can any one suggest me with simple example code along with changes in struts-config.xml and hidden values.

Thanks in advance for immediate response.

bye
kishore kadiri
 
Marshal
Posts: 15631
264
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kishore,

Welcome to JavaRanch. I encourage you to use the Search feature to find posts that may be related to your questions (It's a small link at the top of each page). Take a look at this thread for some tips you might find useful.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can debug your struts application extending the RequestProcessor.
If you debug, you can see if your ActionForm is sended more of a time or if your Action class is executed two times or more
 
Sergio Gonz�lez
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can debug your struts application extending the RequestProcessor.
If you debug, you can see if your ActionForm is sended more of a time or if your Action class is executed two times or more
 
Whatever you say buddy! And I believe this tiny ad too:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic