You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bill Siggelkow <bi...@bellsouth.net> on 2004/07/08 15:19:13 UTC
Re: duplicate submission
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
Re: duplicate submission
Posted by Bill Siggelkow <bi...@bellsouth.net>.
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
Re: duplicate submission
Posted by Jignesh Patel <jp...@bangtechnology.com>.
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