aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
prevent multiple submission of forms in struts
Prob while refresh the page in weblogic8.1 workshop
Question on Synchronizer token
Multiple submits and Struts framework
Dispatch Action class showing different behaviour browser dependent