Re: Use of tokens

2005-04-09 Thread Erik Weber
Yes, tokens are used to prevent duplicate submits of a single form. These are the four methods your Action inherits from org.apache.struts.action.Action: protected String generateToken(HttpServletRequest request) { return token.generateToken(request); } protected boolean isTokenVal

Re: Use of tokens

2005-04-09 Thread Phil Steitz
It's a toy example, but the mailreader sample application included in the struts distribution demonstrates the use of tokens. Phil On Apr 9, 2005 5:22 PM, Brad Balmer <[EMAIL PROTECTED]> wrote: > Do people use tokens to disable multiple requests? I have pages that use > image

Use of tokens

2005-04-09 Thread Brad Balmer
Do people use tokens to disable multiple requests? I have pages that use images to submit forms, thus I cannot use javascript to disable the submit on multiple clicks. I was reading about tokens but couldn't find a full example except the three functions to call. If you can use tokens to disable