Brian and Stephane, Redirecting seems to work in terms of not allowing the user to 'refresh' and repost the form data.
The problem I'm having now is the messages (set by data.setMessage()) are being lost. So, I'm not sure how to provide feedback to the users... Any ideas? Thanks again, David -----Original Message----- From: Stephane James Vaucher [mailto:[EMAIL PROTECTED] Sent: Thursday May 6, 2004 10:19 AM To: Turbine Users List Subject: RE: Turbine/Velocity - Back Button displays Page has Expired 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
