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 "StrutsUpgradeNotes11to124" by NiallPemberton
Date Fri, 02 May 2008 00:55:33 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 NiallPemberton:
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124

The comment on the change is:
Correct comment about Actions execute/perform methods

------------------------------------------------------------------------------
  moduleConfig.freeze();
  getServletContext().setAttribute(Globals.MODULE_KEY, moduleConfig);}}}
  
- == Action.perform(...) is changed to Action.execute(...) ==
+ == Change Action.perform(...) to Action.execute(...) ==
  
- For your action classes that extend org.apache.struts.action.Action, be sure to implement
the ''execute'' method.  Previously the method to implement was ''perform'', and because the
''perform'' method still exists as a do-nothing method your code will compile and deploy fine,
and leave you wondering why it's not working.  
+ In '''''Struts 1.1''''' the {{{execute(...)}}} method was introduced and {{{perform(...)}}}
method deprecated in [http://svn.apache.org/repos/asf/struts/struts1/tags/STRUTS_1_1/src/share/org/apache/struts/action/Action.java
Action]. In Struts 1.1 the deprecated {{{perform(...)}}} method continues to work.
+ 
+ In '''''Struts 1.2.x''''' the deprecated {{{perform(...)}}} method was removed from [http://svn.apache.org/repos/asf/struts/struts1/tags/STRUTS_1_2_4/src/share/org/apache/struts/action/Action.java
Action] and therefore any Action's which still implement {{{perform(...)}}} rather than {{{execute(...)}}}
no longer function and should be changed to implement {{{execute(...)}}}.
+ 
  ----
  CategoryHomepage StrutsUpgrade
  

Mime
View raw message