[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

SaveToken In struts

Posted on 2004-05-02
4
Medium Priority
?
1,925 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
2 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 80 total points
ID: 10986405
look up Synchronizer Token pattern

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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Moore’s Law has proven itself time and time again since it was first introduced. So what’s next? Will Moore’s law continue to remain relevant, or will new technology take over and bring us the next big advancement in computing?
Loops Section Overview
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…

873 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