SaveToken In struts

Hi,

How do i Check Double Submit and if they use browser back and then submit in Struts

I mean How do i use SaveToken and IsValidToken
chgkAsked:
Who is Participating?
 
ba_pepperConnect With a Mentor Commented:
look up Synchronizer Token pattern

http://www.javaworld.com/javatips/jw-javatip136_p.html
0
 
TimYatesCommented:
Write a start action

save the token in the start action, and then check it's valid in the action itself :-)

The registration action in the Struts examples show this in action...

EditRegistration is the start action

SaveRegistration is the one that stores the data (after checking the token)
0
All Courses

From novice to tech pro — start learning today.