Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Refresh Problem

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I am using struts token to prevent multiple submissions in my application.
It works fine, i some cases i am facing problem.
I am telling the way i implement refresh control breifly below

In my action class i set the token and save it and then i forward to a Jsp.
On submission of that i form i go to action class and validate the token,if its valid one i set reset the token and proceed with the further operations. When it fails ( because he clicks on refresh) i redirect the user to the same screen. In some jsp in my application i have popup on click on submit button. Which will in turn have actioin hit and load some details in popup. User selects some details in popup and it comes back to main page. Then the form is submitted. When this happens in the action class, validate token method fails and i dont knw why this happens. Can any one suggest a way of overcoming this problem, it would be a great help to me.

Thanks in advance.

Regards,
Arul.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try setting the token in the action called by your popup page.
 
Without deviation from the norm, progress is not possible - Zappa. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic