A base configuration file named webwork struts-default.xml
is included in the webwork struts2.jar
file. This file may be included at the top of your xworkis automatically included into struts.xml
file to include provide the standard configuration settings without having to copy them, like so:
...
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd"><xwork>
<include file="webwork-default.xml"/>
<package name="default" extends="webwork-default">
...
</package>
</xwork>
.
Tip |
---|
To exclude the |
The contents of strutsThe contents of webwork-default.xml are here:
Wiki Markup |
---|
{snippet:id=webwork-defaultall|lang=xml|url=https:struts2//webwork.dev.java.net/source/browse/*checkout*/webwork/src/java/webworkcore/src/main/resources/struts-default.xml?content-type=text%2Fplain|lang=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 "webworkstruts-default".