<?xml Version = "1.0" encoding = "UTF-8"?> <!--The following is a DTD information for the STRUTS2 configuration file--> <! DOCTYPE struts Public "-//apache Software foundation//dtd struts Configuration 2.0//en" "http://struts.apache.org/
Dtds/struts-2.0.dtd "> <!--struts is struts2 configuration file with elements--> <struts> <!--The following elements can appear 0 times, and can occur infinitely many times--> <constant name= "value="/> <!--The following elements can appear 0 times, and can occur infinitely many times--> <bean type= "name=" "class=" "scope=" "Stati c= "optional=" "/> <!--The following elements can appear 0 times, and can occur infinitely many times--> <include file=" "/> <!--package element is the core of the struts configuration file, which can occur 0 times, or infinite number of times--> <package name= "required package name extends=" "Namespace=" "abstract=" "Externalreferenceresovler> < !--The following element can appear or not appear, up to one--> <result-types> <!--The following element must appear and can occur countless times--> <result-type name= "" Cl
ass= "" default= "True\false" > <!--The following elements can appear 0 times, and can occur infinitely many times--> <param name= "parameter name" > Parameter value </param> </result-type> </result-types> <!--The following element can appear and alsoCan not appear, but up to 1 times--> <interceptors> <!--interceptors element interceptor elements and Interceptor-stack appear at least one of the child elements, or both.--> <!--The following elements can appear 0 times, and can also appear infinitely many times--> <interceptor name= "" class= "" > <!--The following elements can appear 0 times, also can be
Now infinitely many times--> <param name= "parameter name" > Parameter value </param> </interceptor> <!--The following elements can appear 0 times, and can occur infinitely many times--> <interceptor-stack name= "" > <!--The following elements must appear and can occur countless times--> <interceptor-ref name= "" > <! --The following elements can appear 0 times, and can also appear infinitely many times--> <param name= "parameter name" > Value </param> </interceptor-ref> </interc
Eptor-stack> </interceptors> <!--The following elements can appear 0 times, and can occur infinitely many times--> <default-interceptor-ref name= "" > <!--The following elements can appear 0 times, and can appear infinitely many times--> <param name= "parameter name" > Parameter value </param> </default-interceptor-ref> & lt;! --The following elements can appear 0 times, and can occur infinitely many times--> <default-action-ref name= "" > <!--The following elements can appear 0 times, and can occur infinitely many times--> <param Name= "parameter name" > Parameter value </param> </default-action-ref> <!--The following elements can appear 0 times, and can occur infinitely many times--> <global-results> <!--The element must appear and can occur infinitely many times- > <result name= "" type= "> <!--the string contents can appear 0 or more times--> mapping resource <!--The following elements can appear 0 times, and can occur infinitely many times--&G
T <param name= "parameter name" > Parameter value </param> </result> </global-results> <!--The following elements can appear 0 times, and can occur several times
; <global-exception-mappings> <!--The element must appear and can appear multiple times--> <exception-mapping name= "exception=" "result=" > Exception Handling Resources <!--The following elements can appear 0 times, and can also appear infinitely many times--> <param name= "parameter name" > Parameter value </param> </exception-m apping> </global-exception-mappings> <action name= "class=" "method=" "convertor=" "> <!--The following elements can be To appear 0 times, you can also appear infinitely many times--> <param name= "parameter name" > Parameter value </param> <!--The following elements can appear 0 times, and can occur infinitely many times--> <result Name= "type=" > Mapping Resources <!--The following elements can appear 0 times, and can occur infinitely many times--> <param name= "parameter name" > Parameter value </param> ;/result&Gt <!--The following elements can appear 0 times, and can occur infinitely many times--> <interceptor-ref name= "" > <!--The following elements can appear 0 times, and can occur infinitely many times--> <p Aram name= "parameter name" > Parameter value </param> </interceptor-ref> <!--The following elements can appear 0 times, and can occur infinitely many times--> <exception- Mapping name= "exception=" "result=" > Exception Handling Resources <!--The following elements can appear 0 times, and can occur infinitely many times--> <param name= "parameter name" ; parameter value </param> </exception-mapping> </action> </package> </struts>