• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refresh Problem

 
Arulanand Dayalan
Ranch Hand
Posts: 126
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try setting the token in the action called by your popup page.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic