Is there a way to define some default properties for a component in the component.xml file? For example, if I have a component named LdapManager, I might want to provide some properties such as host, port, base dn, etc that get set when the component is initialized. Maybe it's defined in the component.xml file like:
<component> <scope>application</scope> <class>some.domain.LdapManager</class> <enabler>some.domain.LdapManagerAware</enabler> <params> <param> <name>host</name> <value>ldap.domain.com</value> </param> <param> <name>baseDn</name> <value>ou=People,o=Company</value> <param> </params> </component>
where host and baseDn would essentially call setHost() and setBaseDn() on LdapManager.
Am I just dreaming here, or does something like this exist? I checked the docs online (XWork wiki) and couldn't find anything (which is maybe my answer), but maybe I missed it.
If not, how do most people handle component configuration? Just read in some properties/configuration file on init(), or is there a better way?
Thanks for any advice,
Tim
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork