struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ced...@apache.org
Subject cvs commit: jakarta-struts/src/share/org/apache/struts/action ActionServlet.java
Date Fri, 27 Dec 2002 10:52:22 GMT
cedric      2002/12/27 02:52:22

  Modified:    src/share/org/apache/struts/action ActionServlet.java
  Log:
  Pass the current plugIn config object to the PlugIn during initialization.
  The object is passed as a property of the plugin. The plugin should declare a
  property "currentPlugInConfigObject" to be able to receive the config object.
  The property is set only if the plugin declares it.
  This plugin config object is needed by Tiles.
  
  Revision  Changes    Path
  1.138     +9 -5      jakarta-struts/src/share/org/apache/struts/action/ActionServlet.java
  
  Index: ActionServlet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/action/ActionServlet.java,v
  retrieving revision 1.137
  retrieving revision 1.138
  diff -u -r1.137 -r1.138
  --- ActionServlet.java	22 Dec 2002 05:31:14 -0000	1.137
  +++ ActionServlet.java	27 Dec 2002 10:52:22 -0000	1.138
  @@ -1093,7 +1093,11 @@
                   plugIns[i] =
                       (PlugIn)RequestUtils.applicationInstance(plugInConfigs[i].getClassName());
                   BeanUtils.populate(plugIns[i], plugInConfigs[i].getProperties());
  -                    plugIns[i].init(this, (ModuleConfig) config);
  +                  // Pass the current plugIn config object to the PlugIn.
  +                  // The property is set only if the plugin declares it.
  +                  // This plugin config object is needed by Tiles
  +                BeanUtils.copyProperty( plugIns[i], "currentPlugInConfigObject", plugInConfigs[i]);
  +                plugIns[i].init(this, (ModuleConfig) config);
               } catch (ServletException e) {
                   // Lets propagate
                   throw e;
  
  
  

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message