Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

A base configuration file named struts-default.xml is included in the struts2.jar file. This file is automatically included into struts.xml file to provide the standard configuration settings without having to copy them.

Tip

To exclude the struts-default.xml or to provide your own version, see the struts.configuration.files setting in struts.properties.

The contents of struts-default.xml are here:

Wiki Markup
{snippet:id=all|lang=xml|url=struts2/core/src/main/resources/struts-default.xml}

This file defines all of the default bundled results and interceptors and many interceptor stacks which you can use either as-is or as a basis for your own application-specific interceptor stacks. Notice the name of the package is "struts-default".