As far as I know, there is no turbine module included in turbine to handle 
your flow as there is in struts.

You can however send http redirects back to the user. These will tell the 
browser that the page has moved and it should use the new page (of course 
the server has already processed the post request/action).

Here is some sample code of how to do a redirect to be executed after you 
handle the request and want to redirect the client.

public void redirect(RunData data, String page) throws Exception {
    TemplateLink    tl = new TemplateLink(data);
    tl.setPage(page);

    // tells the browser where to get the new page
    data.setRedirectURI(tl.getURI()); 
    // tells the browser page has moved
    data.setStatusCode(302); 
}

HTH,
sv

On Wed, 5 May 2004, David Demner wrote:

> Hi Stephane,
> 
> Interesting...  How do you get this work 'elegantly' in turbine?  Right now,
> my data entry forms are processed by Actions, but when I use setTemplate
> from within the action, I get to the presentation page I want, but when I
> click on Refresh it asks to resending the data.  How are you doing this?
> 
> Thanks!
> 
> DAvid
> 
> -----Original Message-----
> From: Stephane James Vaucher [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday May 5, 2004 1:29 PM
> To: Turbine Users List
> Subject: Re: Turbine/Velocity - Back Button displays Page has Expired
> 
> 
> I think it's probably a questing of the browser interpretation of 
> the semantics of the http method you are using.
> 
> I don't want to sound pedantic, but a post implies posting information 
> while a get implies retrieving information. If you want the info to be 
> shown using back, you should use a get, not a post. In general, when I use 
> a post, I redirect afterwards to the presentation page that can be 
> refreshed. This is to prevent my app from allowing double submissions with 
> refreshes, and protects me from browser specific behaviour.
> 
> sv
> 
> On Tue, 4 May 2004, Chung, Sean Saehoon wrote:
> 
> > Hello all,
> >  
> > I am building an application using Turbine/Velocity.
> >  
> > It looks like when an application is secured (by defining security related
> > elements in web.xml), using BACK button of IE generates :
> >  
> > Warning: Page has Expired 
> > The page you requested was created using information you submitted in a
> > form. This page is no longer available. As a security precaution, Internet
> > Explorer does not automatically resubmit your information for you. 
> > 
> > To resubmit your information and view this Web page, click the Refresh
> > button. 
> >  
> >  
> >  
> > Now from here user can press REFRESH button on the browser to get to the
> > previous page, but I am trying to see if there is a work around for having
> > to press back and then refresh.
> >  
> > By looking at the fact that this doesn't happen (ie just back button will
> > take a user to previous page) when an application is not protected (no
> > security related elements defined in web.xml) and I guess this problem is
> to
> > do with authentication somehow?.
> >  
> > Has anyone dealt with this issue before?
> >  
> > Thanks in advance
> > Sean
> > 
> 
> 
> ---------------------------------------------------------------------
> 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