Yes, there are two approaches. We can include other struts.xml file from a bootstrap, or we can place multiple struts.xml
files on the classpath. Or both.
including
A typical Sure, that's what the <include> element is for. Most struts.xml
files already will have one or more include elements:
...
@see com.opensymphony.xwork.config.ConfigurationManager
@see com.opensymphony.xwork.config.Configuration
@see com.opensymphony.xwork.config.impl.DefaultConfiguration
@see com.opensymphony.xwork.config.ConfigurationProvider
@see com.opensymphony.xwork.config.providers.XmlConfigurationProvider
Classpathing
A "modular" application may have several struts.xml
files placed in various packages on the classpath.
At startup, the framework will search down the classpath for struts.xml
files and load each one, honoring any include statements.