The framework configuration supports an include element. When using
packages and namespaces to organize an application, each namespace can
be placed into its own configuration file, and then included by the
default struts.xml configuration file.

<struts>

   <constant name="struts.devMode" value="false" />

   <include file="struts-chat.xml" />

   <include file="struts-hangman.xml" />

   <!-- ... ->

</struts>

Maintaining a separate configuration file for each module reduces
coupling and increases cohesion. If different members of a team are
workinmg on different segments of the application (or "module"), each
group can maintain the configuration file relating to their segment.

Note that configuration packages can extend one another.

<struts>
   <package name="mailreader-support" namespace="/"
extends="mailreader-default">

   <!-- ... -->
<struts>

Common configuration settings can be placed into a default file and
shared between packages.

HTH, Ted.
<http://www.husted.com/ted/blog/>

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

Reply via email to