struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Siggelkow <bills...@bellsouth.net>
Subject Re: duplicate submission
Date Thu, 08 Jul 2004 14:20:36 GMT
Well, it adds a parameter to the query string of the link containing the 
  token. You do need to save the token in the request in the Action 
prior to the page:

public class MyAction {
   public ActionForward execute(...) {
     ...
     saveToken(request);
     ...
   }
}

Jignesh Patel wrote:

> Does that set a same token which will be used to avoid duplicate
> submission.
> 
> -Jignesh
> On Thu, 2004-07-08 at 09:19, Bill Siggelkow wrote:
> 
>>You can add the token to a link URL (html:link or html:rewrite tag) by 
>>setting 'transaction="true"'.
>>
>>Jignesh Patel wrote:
>>
>>>We have specific requirement for generating token in JSP instead of
>>>action class to avoid duplicate submission.
>>>
>>>Can anybody tell us how to do that.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message