Versions Compared

Key

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

A base configuration file named actionstruts-default.xml is included in the struts-actionstruts2.jar file. This file may be included at the top of your actionstruts.xml file to include the standard configuration settings without having to copy them. Here's an example:

Code Block
xml
xml
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd"><xwork>
    <include file="action-default.xml"/>

    <package name="default" extends="action-default">
    ...
    </package>
</xwork>

The contents of actionstruts-default.xml are here:

Wiki Markup
{snippet:id=all|lang=xml|url=action2/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 "actionstruts-default".