This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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
 
GeeCON Prague 2014
 
subject: Usage of isTokenValid