[Struts Wiki] Update of "RolloverScope" by Bill McCarty

2012-03-08 Thread Apache Wiki
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change 
notification.

The "RolloverScope" page has been changed by Bill McCarty:
http://wiki.apache.org/struts/RolloverScope?action=diff&rev1=12&rev2=13

  Attention! This page describes a feature that has not been implemented yet!
  
  = Rollover Scope for Struts 1.x =
- 
- Traditionally web applications use to store state information either in in 
the HTTP request or in the HTTP session. 
+ Traditionally web applications use to store state information either in in 
the HTTP request or in the HTTP session.
  
  If request object is used, state is usually serialized to HTML page as part 
of HTML FORM. In this case moving back and forward along page history changes 
the state. Consider implementing an online store checkout service, using 
request object to store state. After a customer payed for goods, he can click 
Back button and pay again. To prevent this kind of error a token or similar 
facility should be used.
  
@@ -17, +16 @@

  {{attachment:rollover.gif}}
  
  == Rollover scope in a nutshell ==
- 
  A rollover scope is essentially a map stored within session scope. One 
session object can store several associated rollover scopes.
  
  Rollover scope can be used in the following ways:
+ 
   * Directly from application code by calling methods of RolloverScope class. 
[not tested]
   * By passing rollover scope to saveXXX() and loadXXX() methods of Action 
class. [not tested]
   * By specifying rollover scope for an action form in struts-config.xml file. 
[implemented]
  
  A rollover scope can be configured for automatic garbage collection. Two 
techniques are possible:
+ 
   * Specifying removal strategy (by timeout or by request count) and a 
limiting value (number of requests or time to live) at scope creation time. 
Scope will be removed when its lifetime counter exceeds limiting value.
   * Specifying a release property in action mapping; when action forwards to a 
release target, the rollover scope is destroyed.
  
  == Using rollover scope explicitly from application code ==
- 
  (Not all statements of this section are backed up by actual code)
  
  To obtain an instance of a rollover scope use {{{RolloverScope.getInstance}}} 
static method. If the scope you are accessing does not exist and "create" flag 
is true, new scope will be created. When a rollover scope is accessed 
explicitly, its content is not copied to request scope.
@@ -40, +39 @@

  To remove rollover scope from the session object use 
{{{RolloverScope.remove}}} method. If "writeThrough" flag was set at scope 
creation time, rollover data is removed from request scope as well.
  
  == Using saveXXX methods of Action class ==
- 
  TBD
  
  == 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 is example of a typical use case implemented with two action mappings: a 
Log In component. 
+ 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, 
another mapping use used for rendering either "Not logged in"...
  
  {{attachment:login.gif}}
  
- ...or "logged in" page. 
+ ...or "logged in" page.
  
  {{attachment:logout.gif}}
  
- A rollover scope is used to store form bean in between requests. 
+ A rollover scope is used to store form bean in between requests.
  
  === Rollover-scoped action form, example 1 ===
- 
  This is the simplest way of configuring the rollover scope: just declaring 
the scope as "rollover". The input action inherits from !EventDispatchAction 
and is used as event processor. Events are defined in 'parameter' attribute 
(see !EventDispatchAction for details). Notice that 'scope' has 'rollover' 
value. A removal strategy of with lifetime of one request is defined for 
rollover scope - perfect for most redirect-after-post use cases. Render action 
uses login/logout state to render an appropriate view.
  
  By default, removal strategy is by request count, and maximum lifetime is one 
request. This means, that when you navigate from this action, the "loginform" 
action form will mature, and on a next request it will be removed from session.
  
  {{{
  
- 
- 
- 
+  . type = "org.apache.struts.samples.login.LoginInputAction" name = 
"loginform" scope = "rollover" validate = "false" parameter = 
"initEvent=init,loginEvent=login,cancelEvent=cancel,logoutEvent=logout">
+   
 
+ 
  
  
  
  
- 
- 
+  . type = "org.apac

[CONF] Confluence Changes in the last 24 hours

2012-03-08 Thread confluence
This is a daily summary of all recent changes in Confluence.

-
Updated Spaces:
-


Apache Bigtop (incubating) (https://cwiki.apache.org/confluence/display/BIGTOP)

Pages
-
How to install Hadoop distribution from Bigtop edited by  
do...@stanfordalumni.org  (04:42 PM)
https://cwiki.apache.org/confluence/display/BIGTOP/How+to+install+Hadoop+distribution+from+Bigtop



Apache Camel (https://cwiki.apache.org/confluence/display/CAMEL)

Pages
-
Solr edited by  boday  (04:07 PM)
https://cwiki.apache.org/confluence/display/CAMEL/Solr

Camel 2.10.0 Release edited by  boday  (03:48 PM)
https://cwiki.apache.org/confluence/display/CAMEL/Camel+2.10.0+Release

SMPP edited by  mazzag  (10:10 AM)
https://cwiki.apache.org/confluence/display/CAMEL/SMPP



Apache Cayenne (https://cwiki.apache.org/confluence/display/CAY)

Pages
-
Board Report March 2012 created by blacknext (08:18 AM)
https://cwiki.apache.org/confluence/display/CAY/Board+Report+March+2012

Board Reports edited by  blacknext  (08:10 AM)
https://cwiki.apache.org/confluence/display/CAY/Board+Reports



Apache CXF Documentation (https://cwiki.apache.org/confluence/display/CXF20DOC)

Pages
-
Application Server Specific Configuration Guide edited by  dkulp  (10:46 AM)
https://cwiki.apache.org/confluence/display/CXF20DOC/Application+Server+Specific+Configuration+Guide

Developing Assertions edited by  ashakirin  (05:04 AM)
https://cwiki.apache.org/confluence/display/CXF20DOC/Developing+Assertions



Apache Felix (https://cwiki.apache.org/confluence/display/FELIX)

Pages
-
Board Report (2012-03) edited by  he...@ungoverned.org  (12:13 PM)
https://cwiki.apache.org/confluence/display/FELIX/Board+Report+%282012-03%29



Apache Kafka (https://cwiki.apache.org/confluence/display/KAFKA)

Pages
-
Kafka Replication edited by  nehanarkhede  (08:12 PM)
https://cwiki.apache.org/confluence/display/KAFKA/Kafka+Replication



Apache Mahout (https://cwiki.apache.org/confluence/display/MAHOUT)

Comments
https://cwiki.apache.org/confluence/display/MAHOUT/Quickstart (1)

OFBiz Project Administration Workspace 
(https://cwiki.apache.org/confluence/display/OFBADMIN)

Pages
-
Mini-language Reference edited by  adrianc  (08:54 AM)
https://cwiki.apache.org/confluence/display/OFBADMIN/Mini-language+Reference



OFBiz (Open For Business) Project Open Wiki 
(https://cwiki.apache.org/confluence/display/OFBIZ)

Pages
-
Groovy Services and DSL for OFBiz created by jacopoc (12:52 PM)
https://cwiki.apache.org/confluence/display/OFBIZ/Groovy+Services+and+DSL+for+OFBiz



Apache OpenOffice Community 
(https://cwiki.apache.org/confluence/display/OOOUSERS)

Pages
-
DNS, Virtual Hosts and Redirects edited by  kschenk  (05:30 PM)
https://cwiki.apache.org/confluence/display/OOOUSERS/DNS%2C+Virtual+Hosts+and+Redirects

AOO 3.4 Unofficial Developer Snapshots edited by  yda...@apache.org  (09:31 AM)
https://cwiki.apache.org/confluence/display/OOOUSERS/AOO+3.4+Unofficial+Developer+Snapshots



Apache Pig (https://cwiki.apache.org/confluence/display/PIG)

Pages
-
HowToTest edited by  traviscrawf...@gmail.com  (08:09 PM)
https://cwiki.apache.org/confluence/display/PIG/HowToTest



Apache Qpid (https://cwiki.apache.org/confluence/display/qpid)

Pages
-
Continuous Integration edited by  k-wall  (09:05 PM)
https://cwiki.apache.org/confluence/display/qpid/Continuous+Integration

Qpid extensions to AMQP edited by  robbie  (06:54 AM)
https://cwiki.apache.org/confluence/display/qpid/Qpid+extensions+to+AMQP

0.16 Release edited by  justi9  (05:50 AM)
https://cwiki.apache.org/confluence/display/qpid/0.16+Release



Apache Shindig (https://cwiki.apache.org/confluence/display/SHINDIG)

Pages
-
Setting Up An Eclipse Development Environment For Shindig (Java) edited by  
ssiev...@apache.org  (07:45 AM)
https://cwiki.apache.org/confluence/display/SHINDIG/Setting+Up+An+Eclipse+Development+Environment+For+Shindig+%28Java%29



Apache Sqoop (https://cwiki.apache.org/confluence/display/SQOOP)

Pages
-
Archived created by k...@