Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Configuration Files > struts.xml
Added by ctran, last edited by Ted Husted on Sep 11, 2006  (view change)

The core configuration file for the framework is the default (struts.xml) file.

  • The default file may include other configuration files as needed.
  • A struts.xml file can be placed in a JAR and automatically plugged into an application, so that modules can be self-contained and automatically configured.
    • In the case of Freemarker and Velocity modules, the templates can also be loaded from the classpath, so the entire module can be plugged in as a single JAR.

See Struts Configuration Elements for a description of the various elements.

FAQ

Can we break up a large struts.xml file into smaller pieces?

Next: struts.xml Examples