This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes Usage of isTokenValid Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Usage of isTokenValid" Watch "Usage of isTokenValid" New topic
Author

Usage of isTokenValid

Kalichar Rangantittu
Ranch Hand

Joined: Jan 15, 2002
Posts: 240
What is the best practice on using isTokenValid()? Does one use if for all form posts to check for duplicate or only on those that issue a transaction like Save or Update? In other words does a search need to use the token checking on form post?

Thanks


Never be satisfied with anything less than the best and you will surely pass the test...
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I say there's no point in dealing with the overhead of tokens in situations where it doesn't really matter if the user submits twice. In a search, there's no real harm done if there's a double submit.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Usage of isTokenValid
 
It's not a secret anymore!