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.1.7//EN"
32 "http://struts.apache.org/dtds/struts-2.1.7.dtd">
35 <!ELEMENT struts ((package|include|bean|constant)*, unknown-handler-stack?)>
40 <!ELEMENT package (result-types?, interceptors?, default-interceptor-ref?, default-action-ref?, default-class-ref?, global-results?, global-exception-mappings?, action*)>
43 extends CDATA #IMPLIED
44 namespace CDATA #IMPLIED
45 abstract CDATA #IMPLIED
46 externalReferenceResolver NMTOKEN #IMPLIED
49 <!ELEMENT result-types (result-type+)>
51 <!ELEMENT result-type (param*)>
55 default (true|false) "false"
58 <!ELEMENT interceptors (interceptor|interceptor-stack)+>
60 <!ELEMENT interceptor (param*)>
66 <!ELEMENT interceptor-stack (interceptor-ref*)>
67 <!ATTLIST interceptor-stack
71 <!ELEMENT interceptor-ref (param*)>
72 <!ATTLIST interceptor-ref
76 <!ELEMENT default-interceptor-ref (#PCDATA)>
77 <!ATTLIST default-interceptor-ref
81 <!ELEMENT default-action-ref (#PCDATA)>
82 <!ATTLIST default-action-ref
86 <!ELEMENT default-class-ref (#PCDATA)>
87 <!ATTLIST default-class-ref
91 <!ELEMENT global-results (result+)>
93 <!ELEMENT global-exception-mappings (exception-mapping+)>
95 <!ELEMENT action (param|result|interceptor-ref|exception-mapping)*>
100 converter CDATA #IMPLIED
103 <!ELEMENT param (#PCDATA)>
108 <!ELEMENT result (#PCDATA|param)*>
114 <!ELEMENT exception-mapping (#PCDATA|param)*>
115 <!ATTLIST exception-mapping
117 exception CDATA #REQUIRED
118 result CDATA #REQUIRED
121 <!ELEMENT include (#PCDATA)>
126 <!ELEMENT bean (#PCDATA)>
130 class CDATA #REQUIRED
132 static CDATA #IMPLIED
133 optional CDATA #IMPLIED
136 <!ELEMENT constant (#PCDATA)>
139 value CDATA #REQUIRED
142 <!ELEMENT unknown-handler-stack (unknown-handler-ref*)>
143 <!ELEMENT unknown-handler-ref (#PCDATA)>
144 <!ATTLIST unknown-handler-ref
148 <!-- END SNIPPET: strutsDtd -->