Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@apache.org Received: (qmail 34735 invoked from network); 27 Dec 2002 10:52:33 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 27 Dec 2002 10:52:33 -0000 Received: (qmail 5599 invoked by uid 97); 27 Dec 2002 10:53:54 -0000 Delivered-To: qmlist-jakarta-archive-struts-dev@jakarta.apache.org Received: (qmail 5580 invoked by uid 97); 27 Dec 2002 10:53:54 -0000 Mailing-List: contact struts-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list struts-dev@jakarta.apache.org Received: (qmail 5569 invoked by uid 97); 27 Dec 2002 10:53:53 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 27 Dec 2002 10:52:22 -0000 Message-ID: <20021227105222.93607.qmail@icarus.apache.org> From: cedric@apache.org To: jakarta-struts-cvs@apache.org Subject: cvs commit: jakarta-struts/src/share/org/apache/struts/action ActionServlet.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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: For additional commands, e-mail: