Solved

SaveToken In struts

Posted on 2004-05-02
4
1,906 Views
Last Modified: 2007-12-19
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
0
Comment
Question by:chgk
4 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 10984505
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
 

Accepted Solution

by:
ba_pepper earned 20 total points
ID: 10986405
look up Synchronizer Token pattern

http://www.javaworld.com/javatips/jw-javatip136_p.html
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
February 24, 2017 — On February 23, Travis Ormandy, a vulnerability researcher at Google, reported on Twitter (https://twitter.com/taviso/status/834900838837411840) that massive stores of data have been leaked by CloudFlare, a company that provide…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question