Yes I do believe using tokens is a cleaner way

rgds
parimal

-----Original Message-----
From: Yaroslav Novytskyy [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 3:15 PM
To: Struts Users Mailing List
Subject: Re: How to avoid calling .do again once click F5 button.


Hello!

I would advise to use synchronization via Session tockens. (I'm working
at this process' automation at the moment). Struts' Action already has,
what is needed for this are saveToken() and isTokenValid() methods.

This technique makes it imposible to execute an action more then once
(if not on purpouse) exclueding double-submits, refreshes,
by-bookmark-visits.

Read the doc and check if that is what you need. And if yes, you can
take look in my two days old message titled "synchronization strategies"
- I beleave most answers (along with some questions :) ) are there.

Yaroslav Novytskyy

Leon Rosenberg wrote:
> before Michael jumps on the train :-)
>
> simply send a redirect after executing create action to the list action
> again?
>
> regards
> Leon
>
> On Thu, 2005-07-14 at 14:24 +0530, senthil Kumar wrote:
>
>>Hi All.,
>>
>>In our application, I hava a list of tasks. Each task have a chech box and
once checked the check box and click "AddAlert" button,  alert for the
checked task is created.
>>
>>Up to this functionality working fine for me.
>>
>> My problem is once creating alert and unfortunately click F5 button,
again the alert is created for the same task  i.e the same alert action(.do)
calling again.
>>
>>
>>How to avoid it.
>>any one help me.
>>
>>
>>Thanks in advance.
>>
>>
>>Regs.,
>>Senthil S
>>
>>
>>
>>
>>This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient or received it in error,
please contact the sender by reply e-mail and destroy all copies of the
original message. Please do not copy it for any purpose or disclose its
contents.
>>
>>Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to