Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Restrict Multiple Form Submission Using Interceptor in Struts 2

 
sudhir pavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to restrict the multiple form submission using interceptor concept in struts 2.

Currently i have handle the form submission in client level i.e using java script disable the submission button on first click.

can you provide me the example.

Regards
Sudhir
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
 
sudhir pavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As suggested i have used Token Interceptor to restrict the multiple form submission.
but the thing is i cannot show the error message in intend to show, instead it always shows me below message

"The form has already been processed or no token was supplied, please try again."

any suggestion welcome...
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you attempting to change the error message?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic