On Fri, 24 Jan 2003, Travis Chase wrote:
> Date: Fri, 24 Jan 2003 16:09:09 -0600 > From: Travis Chase <[EMAIL PROTECTED]> > Reply-To: Struts Developers List <[EMAIL PROTECTED]> > To: Struts Developers List <[EMAIL PROTECTED]> > Subject: RE: Action question > > That is where I first thought, but looking through the ActionMapping and > ActionConfig classes I do not see where you can set the dynamic, > declarative properties that get set with the set-property element. I > say this because the DTD declares that the action element can contain > zero or more set-property elements that I assume you can setup and > populate in your Action subclass bean. Am I mistaken or is this a > forward looking feature? I see where it is done with the datasource > element. > The property setter calls do indeed happen on the ActionMapping instances (which are subclasses of org.apache.struts.config.ActionConfig). *When* they happen is when the struts-config.xml file is parsed using the Digester module. The org.apache.sturts.config.ConfigRuleSet has all the setup of the Digester rules, and you can read more about using Digester itself by perusing the package documentation at: http://jakarta.apache.org/commons/digester/api/ > -travis Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>