> If I define plugin class and declare the following in
> struts-config file:
> <plugin className = "myPluginClass">
>   <set-property property="key" value="myValue"/>
> </plugin>
> How can I get the above property value in one of
> my action classes?

Well it's obviously possible, since TilesPlugIn and ValidatorPlugIn do
it.  I looked at the source of ValidatorPlugIn, and there's no code to
pull the values out of the config file, there are only get/set methods
with names matching the properties.

I believe Digester is used to parse the xml config file and start the
plugins.  Based on ValidatorPlugIn, and given your example, I would make
getKey/setKey methods in MyPlugInClass.  I have a feeling they will
magically get populated.  (Then I'd run it in JSwat so I could see
exactly what's happening.)  Let us know if it works.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to