Versions Compared

Key

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

The core configuration file for the framework is the default (struts.xml) file. The default file may include other configuration files as needed. See Struts Configuration Elements for a description of the various elements.

An Example configuration file

Panel
titlestruts.xml
Wiki Markup
{snippet:id=xworkSample|lang=xml|javadoc=false|url=struts2/apps/showcase/src/main/webapp/WEB-INF/classes/xwork-person.xml}

(lightbulb) For more about configuration details, see Struts Configuration Elements

The Struts 2 Document Type Definition (DTD)

Panel
titlestruts-2.0.dtd
Wiki Markup
{snippet:id=xworkDtd|lang=xml|javadoc=false|url=xwork2/src/java/xwork-1.2.dtd}

FAQ

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