Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.
The following page has been changed by MichaelJouravlev: http://wiki.apache.org/struts/RolloverScope The comment on the change is: Added pictures ------------------------------------------------------------------------------ == Using rollover scope to store an action form == - In a Struts application a rollover scope can be used in action mapping definition just as request and session scopes. To declare a rollover scope for an action form specify {{{scope="rollover"}}} in action mapping definition. Below are examples of a standard redirect-after-post pattern: one mapping for submitting user data from browser, another mapping for rendering a web page. A rollover scope is used to store form bean in between requests. + In a Struts application a rollover scope can be used in action mapping definition just as request and session scopes. To declare a rollover scope for an action form specify {{{scope="rollover"}}} in action mapping definition. Below is example of a typical use case implemented with two action mappings: a Log In component. + + One mapping is used for submitting login and password from the browser... + + inline:login.gif + + ...another mapping use used for rendering either "Not logged in" or "logged in" page. + + inline:logout.gif + + A rollover scope is used to store form bean in between requests. === Rollover-scoped action form, example 1 ===