Here's a neat circumstance for a redirect. There's a batch process that the user's can run to get the latest whatever. When it runs, it marks the current records as being done, since the process is meant to run once per record. A good way to do this is to run the process, and then redirect to another Action that displays the result of the process. This way if the user hits reload or refresh, they won't run a new batch, but redisplay the current one (which is what they probably wanted).
/do/batch/Run -> (mark records) -> (redirect) -> /do/batch/View?batch=42 -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ Brian Holzer wrote: > > Hey there, > I am kind of confused about what the difference is between a forward and a >redirect. In reading the documentation on the logic:forward and redirect tags. With >the forward tag, whether a forward or redirect is sent, is determined by the redirect >param in the <action> definition. The redirect tag sends a redirect to the browser, >but what is the difference between the two? Why would I want to define an Actions >forward so that it is sent as a redirect? Maybe the answer will be evident to me >once I know the difference b/t the two. Can someone shed some light on this for me? > > Brian > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>