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 struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <include file="struts-default.xml"/> <package name="default" extends="struts-default"> ... </package> </struts> |
The contents of struts-default.xml are here:
...