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
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
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
3 matches
Mail list logo