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 ToddOgin:
http://wiki.apache.org/struts/StrutsPleaseWait

------------------------------------------------------------------------------
    </global-forwards>
  }}}
  
+ 
+ === A Note ===
+ 
+ Firstly, Thanks, I used this solution to great succes but noticed one issue.  
The line 
+ 
+ {{{
+ nonResetForm = (ActionForm) 
org.apache.commons.beanutils.BeanUtils.cloneBean(form);
+ }}}
+ 
+ does not copy the {{{ActionForm}}} servlet property (pretty sure it fails 
because there is no {{{ActionForm.getServlet}}}, only set).  For some reason 
our code used it.  To preserve that property, I edited the processActionPerform 
code when it tries to perform the real action like so:
+ 
+ {{{ 
+ if (nonResetForm != null) {
+    session.setAttribute("current_form_key", null);
+    //TO Needs servlet
+    nonResetForm.setServlet(this.servlet);
+    return super.processActionPerform(request, response, action, nonResetForm, 
mapping);
+ }
+ }}}
+ 
+ HTH ToddOgin
+ 

Reply via email to