A base configuration file named struts-default.xml
is included in the struts2.jar
file. This file may be included at the top of your is automatically included into struts.xml
file to include provide the standard configuration settings without having to copy them. Here's an example:
Tip | ||
---|---|---|
To exclude the | ||
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 struts-default.xml are here:
Wiki Markup |
---|
{snippet:id=all|lang=xml|url=action2struts2/core/src/main/resources/struts-default.xml} |
...