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/StateManagement

------------------------------------------------------------------------------
  Implications: Application must provide explicit navigational links and 
buttons so users would not have to use standard browser navigation buttons. 
Application must recognize and handle double-submit situations. 
  
  How Struts can help:
-  * Use [http://struts.apache.org/1.x/struts-taglib/tlddoc/html/hidden.html 
<html:hidden> tag] to store hidden field information and to submit it to 
location specified in <html:form> tag.
+  * Use [http://struts.apache.org/1.x/struts-taglib/tlddoc/html/form.html 
<html:form> tag] to display data entry form, and a single [:StrutsFormBeans: 
ActionForm] to handle both render and submit phases of request/response cycle. 
On render phase Struts renders HTML form fields using values from an 
!ActionForm. On submit phase Struts automatically populates !ActionForm 
properties with values of HTML form fields. This setup ensures that content of 
form fields is saved and redisplayed automatically. Automatic saving/restoring 
of HTML form fields is similar to handling ''postback controls'' in ASP.NET. 
Struts does not have notion of ''non-postback controls'' like labels or data 
grids, and does not automatically save such information.
+  * Use [http://struts.apache.org/1.x/struts-taglib/tlddoc/html/hidden.html 
<html:hidden> tag] to store stringified data in an HTML form and to submit it 
to location specified in <html:form> tag. Struts does not provide built-in 
functionality to encrypt hidden fields.
   * Use 
[http://struts.apache.org/1.2.9/api/org/apache/struts/util/TokenProcessor.html 
TokenProcessor class] to distinguish resubmits.
  
  = Server-Side Techniques =

Reply via email to