struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Struts Wiki] Update of "RolloverScope" by MichaelJouravlev
Date Wed, 07 Feb 2007 08:41:35 GMT
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 ===
  

Mime
View raw message