I would recommend redirecting to another action/jsp after the form post (PRG 
pattern).


> Date: Sun, 1 Feb 2009 12:55:23 +0530
> Subject: Re: How to stop action getting called on click of refresh button
> From: go4m...@gmail.com
> To: user@struts.apache.org
> 
> >
> > So is there any way to stop calling the action/ have one flag on action
> > Which determines this part of code in action need not be executed on click
> > on refresh button.
> >
> >
> For this I think Token and/or Token Session interceptors will do the magic.
> 
> http://struts.apache.org/2.1.6/docs/token-interceptor.html
> http://struts.apache.org/2.1.6/docs/token-session-interceptor.html
> 
> 
> And I think Execute & wait interceptor will be useful to perform some
> lengthy & time taking logic to be executed in the background while the user
> is being displayed some progress bar or a simple wait page.
> And Redirect action for sharing or dividing the action logic.
> 
> Hope this helps.
> 
> 
> ManiKanta

> > Hi,

> > Can I stop the calling of action on click of refresh button as on this

> > action it will generate a report at some specified location.

> > So on every refresh click will generate a new report at that location which

> > is unacceptable.


> > So is there any way to stop calling the action/ have one flag on action

> > which determines this part of code in action need not be executed on click

> > on refresh button.


> > Regards,

> > Shakti


_________________________________________________________________
Windows Liveā„¢: E-mail. Chat. Share. Get more ways to connect. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t2_allup_explore_012009

Reply via email to