struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven J. Owens" <>
Subject Re: what is the difference between forward and redirect?
Date Fri, 16 Apr 2004 01:07:55 GMT
On Thu, Apr 15, 2004 at 04:33:42PM -0700, Craig McClanahan wrote:
> Christian Bollmeyer wrote:
> >1. You've reached the end of a processing chain
> >and want to leave the user at a determined
> >application state, a point from which he may
> >start another interaction with the application,
> >but everything else is done and finished.
> >Such as redirecting to the starting page
> >after a 'wizard' has completed.
> A variation on this same theme is if you want to leave the user a point 
> at which they can save a bookmark to this spot in your application, you 
> need to use a redirect.  Otherwise, the URL being bookmarked will not be 
> correct (it will be the URL to which the last form submit occurred, 
> rather than the page being displayed).

     Another nuance, which I find comes in handy quite often, is that
responding to a form submit with a redirect will prevent the browser
from offering to re-post the parameters for the user.

Steven J. Owens

"I'm going to make broad, sweeping generalizations and strong,
 declarative statements, because otherwise I'll be here all night and
 this document will be four times longer and much less fun to read.
 Take it all with a grain of salt." - Me at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message