Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

SaveToken In struts

Posted on 2004-05-02
4
1,907 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
EJB MDB example 4 87
Handle form fields in spring mvc controller 1 66
How to Make JSP Pages Responsive ? details are below 3 896
mask rule in struts validation.xml 5 94
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Most MSPs worth their salt are already offering cybersecurity to their customers. But cybersecurity as a service is wide encompassing and can mean many things.  So where are MSPs falling in this spectrum?
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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