Versions Compared

Key

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

...

Code Block
xml
xml
<xwork>
    <include file="actionstruts-default.xml"/>
    <include file="config-browser.xml"/>
    <package name="default" extends="actionstruts-default">
....
    </package>
    <include file="other.xml"/>
</xwork>

The first include element tells the framework to load the actionstruts-default.xml, which it wil find in the struts-actionstruts2.jar file. The actionstruts-default.xml file defines the "standard" interceptor and result definitions.

You can put your own <include> elements in your actionstruts.xml interchangeably with <package> elements. They configuration objects will be loaded order of appearance. The framework reads the configuration from top to bottom and adds objects as they are referenced.

...