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.3//EN"
32 "http://struts.apache.org/dtds/struts-2.3.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 strict-method-invocation CDATA #IMPLIED
47 externalReferenceResolver NMTOKEN #IMPLIED
50 <!ELEMENT result-types (result-type+)>
52 <!ELEMENT result-type (param*)>
56 default (true|false) "false"
59 <!ELEMENT interceptors (interceptor|interceptor-stack)+>
61 <!ELEMENT interceptor (param*)>
67 <!ELEMENT interceptor-stack (interceptor-ref*)>
68 <!ATTLIST interceptor-stack
72 <!ELEMENT interceptor-ref (param*)>
73 <!ATTLIST interceptor-ref
77 <!ELEMENT default-interceptor-ref (#PCDATA)>
78 <!ATTLIST default-interceptor-ref
82 <!ELEMENT default-action-ref (#PCDATA)>
83 <!ATTLIST default-action-ref
87 <!ELEMENT default-class-ref (#PCDATA)>
88 <!ATTLIST default-class-ref
92 <!ELEMENT global-results (result+)>
94 <!ELEMENT global-exception-mappings (exception-mapping+)>
96 <!ELEMENT action ((param|result|interceptor-ref|exception-mapping)*,allowed-methods?)>
100 method CDATA #IMPLIED
101 converter CDATA #IMPLIED
104 <!ELEMENT param (#PCDATA)>
109 <!ELEMENT result (#PCDATA|param)*>
115 <!ELEMENT exception-mapping (#PCDATA|param)*>
116 <!ATTLIST exception-mapping
118 exception CDATA #REQUIRED
119 result CDATA #REQUIRED
122 <!ELEMENT allowed-methods (#PCDATA)>
124 <!ELEMENT include (#PCDATA)>
129 <!ELEMENT bean (#PCDATA)>
133 class CDATA #REQUIRED
135 static CDATA #IMPLIED
136 optional CDATA #IMPLIED
139 <!ELEMENT constant (#PCDATA)>
142 value CDATA #REQUIRED
145 <!ELEMENT unknown-handler-stack (unknown-handler-ref*)>
146 <!ELEMENT unknown-handler-ref (#PCDATA)>
147 <!ATTLIST unknown-handler-ref
151 <!-- END SNIPPET: strutsDtd -->