1 <?xml version="1.0" encoding="UTF-8"?>
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements. See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership. The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License. You may obtain a copy of the License at
14 * http://www.apache.org/licenses/LICENSE-2.0
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied. See the License for the
20 * specific language governing permissions and limitations
24 <!-- START SNIPPET: strutsDtd -->
27 Struts configuration DTD.
28 Use the following DOCTYPE
30 <!DOCTYPE struts PUBLIC
31 "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
32 "http://struts.apache.org/dtds/struts-2.0.dtd">
35 <!ELEMENT struts (package|include|bean|constant)*>
37 <!ELEMENT package (result-types?, interceptors?, default-interceptor-ref?, default-action-ref?, default-class-ref?, global-results?, global-exception-mappings?, action*)>
40 extends CDATA #IMPLIED
41 namespace CDATA #IMPLIED
42 abstract CDATA #IMPLIED
43 externalReferenceResolver NMTOKEN #IMPLIED
46 <!ELEMENT result-types (result-type+)>
48 <!ELEMENT result-type (param*)>
52 default (true|false) "false"
55 <!ELEMENT interceptors (interceptor|interceptor-stack)+>
57 <!ELEMENT interceptor (param*)>
63 <!ELEMENT interceptor-stack (interceptor-ref*)>
64 <!ATTLIST interceptor-stack
68 <!ELEMENT interceptor-ref (param*)>
69 <!ATTLIST interceptor-ref
73 <!ELEMENT default-interceptor-ref (#PCDATA)>
74 <!ATTLIST default-interceptor-ref
78 <!ELEMENT default-action-ref (#PCDATA)>
79 <!ATTLIST default-action-ref
83 <!ELEMENT default-class-ref (#PCDATA)>
84 <!ATTLIST default-class-ref
88 <!ELEMENT global-results (result+)>
90 <!ELEMENT global-exception-mappings (exception-mapping+)>
92 <!ELEMENT action (param|result|interceptor-ref|exception-mapping)*>
97 converter CDATA #IMPLIED
100 <!ELEMENT param (#PCDATA)>
105 <!ELEMENT result (#PCDATA|param)*>
111 <!ELEMENT exception-mapping (#PCDATA|param)*>
112 <!ATTLIST exception-mapping
114 exception CDATA #REQUIRED
115 result CDATA #REQUIRED
118 <!ELEMENT include (#PCDATA)>
123 <!ELEMENT bean (#PCDATA)>
127 class CDATA #REQUIRED
129 static CDATA #IMPLIED
130 optional CDATA #IMPLIED
133 <!ELEMENT constant (#PCDATA)>
136 value CDATA #REQUIRED
139 <!-- END SNIPPET: strutsDtd -->