SaveToken In struts


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
Who is Participating?
ba_pepperConnect With a Mentor Commented:
look up Synchronizer Token pattern
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)
All Courses

From novice to tech pro — start learning today.