Versions Compared

Key

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

Sure, that's what the <include> element is for. Most struts.xml files already have one or more include elements:

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

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

...