Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Yes, there are two approaches. We can include other struts.xml file from a bootstrap, or we can place multiple package a struts.xml files on the classpathin a JAR. Or both.

...

By Include

A typical struts.xml files 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

...

By JAR

A "modularmodule" application may have several can be added to an application by placing a struts.xml files placed in various packages and related classes into a JAR on the classpath. At startup, the framework will search down the classpath for struts.xml files and load each one, honoring any include statementsFreeMarker and Velocity templates can also be provided by JAR, making it possible to distribution a module in a single, self-contained JAR that is automatically configured on startup.