精华内容
下载资源
问答
  • Struts-2.3.dtd源码

    千次阅读 2017-01-03 09:09:35
    Struts-2.3.dtd源码 version="1.0" encoding="UTF-8"?... * $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $ * * Licensed to the Apache Software Foundation (ASF) under one * or mor

    Struts-2.3.dtd源码

    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    /*
     * $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $
     *
     * Licensed to the Apache Software Foundation (ASF) under one
     * or more contributor license agreements.  See the NOTICE file
     * distributed with this work for additional information
     * regarding copyright ownership.  The ASF licenses this file
     * to you under the Apache License, Version 2.0 (the
     * "License"); you may not use this file except in compliance
     * with the License.  You may obtain a copy of the License at
     *
     *  http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing,
     * software distributed under the License is distributed on an
     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    -->
    <!-- START SNIPPET: strutsDtd -->
    
    <!--
       Struts configuration DTD.
       Use the following DOCTYPE
    
       <!DOCTYPE struts PUBLIC
       "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
       "http://struts.apache.org/dtds/struts-2.3.dtd">
    -->
    
    <!ELEMENT struts ((package|include|bean|constant)*, unknown-handler-stack?)>
    <!ATTLIST struts
        order CDATA #IMPLIED
    >
    
    <!ELEMENT package (result-types?, interceptors?, default-interceptor-ref?, default-action-ref?, default-class-ref?, global-results?, global-exception-mappings?, action*)>
    <!ATTLIST package
        name CDATA #REQUIRED
        extends CDATA #IMPLIED
        namespace CDATA #IMPLIED
        abstract CDATA #IMPLIED
        strict-method-invocation CDATA #IMPLIED
        externalReferenceResolver NMTOKEN #IMPLIED
    >
    
    <!ELEMENT result-types (result-type+)>
    
    <!ELEMENT result-type (param*)>
    <!ATTLIST result-type
        name CDATA #REQUIRED
        class CDATA #REQUIRED
        default (true|false) "false"
    >
    
    <!ELEMENT interceptors (interceptor|interceptor-stack)+>
    
    <!ELEMENT interceptor (param*)>
    <!ATTLIST interceptor
        name CDATA #REQUIRED
        class CDATA #REQUIRED
    >
    
    <!ELEMENT interceptor-stack (interceptor-ref*)>
    <!ATTLIST interceptor-stack
        name CDATA #REQUIRED
    >
    
    <!ELEMENT interceptor-ref (param*)>
    <!ATTLIST interceptor-ref
        name CDATA #REQUIRED
    >
    
    <!ELEMENT default-interceptor-ref (#PCDATA)>
    <!ATTLIST default-interceptor-ref
        name CDATA #REQUIRED
    >
    
    <!ELEMENT default-action-ref (#PCDATA)>
    <!ATTLIST default-action-ref
        name CDATA #REQUIRED
    >
    
    <!ELEMENT default-class-ref (#PCDATA)>
    <!ATTLIST default-class-ref
        class CDATA #REQUIRED
    >
    
    <!ELEMENT global-results (result+)>
    
    <!ELEMENT global-exception-mappings (exception-mapping+)>
    
    <!ELEMENT action ((param|result|interceptor-ref|exception-mapping)*,allowed-methods?)>
    <!ATTLIST action
        name CDATA #REQUIRED
        class CDATA #IMPLIED
        method CDATA #IMPLIED
        converter CDATA #IMPLIED
    >
    
    <!ELEMENT param (#PCDATA)>
    <!ATTLIST param
        name CDATA #REQUIRED
    >
    
    <!ELEMENT result (#PCDATA|param)*>
    <!ATTLIST result
        name CDATA #IMPLIED
        type CDATA #IMPLIED
    >
    
    <!ELEMENT exception-mapping (#PCDATA|param)*>
    <!ATTLIST exception-mapping
        name CDATA #IMPLIED
        exception CDATA #REQUIRED
        result CDATA #REQUIRED
    >
    
    <!ELEMENT allowed-methods (#PCDATA)>
    
    <!ELEMENT include (#PCDATA)>
    <!ATTLIST include
        file CDATA #REQUIRED
    >
    
    <!ELEMENT bean (#PCDATA)>
    <!ATTLIST bean
        type CDATA #IMPLIED
        name CDATA #IMPLIED
        class CDATA #REQUIRED
        scope CDATA #IMPLIED
        static CDATA #IMPLIED
        optional CDATA #IMPLIED
    >
    
    <!ELEMENT constant (#PCDATA)>
    <!ATTLIST constant
        name CDATA #REQUIRED
        value CDATA #REQUIRED
    >
    
    <!ELEMENT unknown-handler-stack (unknown-handler-ref*)>
    <!ELEMENT unknown-handler-ref (#PCDATA)>
    <!ATTLIST unknown-handler-ref
        name CDATA #REQUIRED
    >
    
    <!-- END SNIPPET: strutsDtd -->
    
    

    展开全文
  • struts-2.1.7包含DTD学习

    2011-11-16 22:23:00
    &lt;?xml version="1.0" encoding="...* $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $ * * Licensed to the Apache Software Foundation (ASF) under one * or more c...

    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    /*
    * $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $
    *
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements. See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership. The ASF licenses this file
    * to you under the Apache License, Version 2.0 (the
    * "License"); you may not use this file except in compliance
    * with the License. You may obtain a copy of the License at
    *
    *
    http://www.apache.org/licenses/LICENSE-2.0
    *
    * Unless required by applicable law or agreed to in writing,
    * software distributed under the License is distributed on an
    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    * KIND, either express or implied. See the License for the
    * specific language governing permissions and limitations
    * under the License.
    */
    -->
    <!-- START SNIPPET: strutsDtd -->

    <!--
    Struts configuration DTD.
    Use the following DOCTYPE

    <!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
    "
    http://struts.apache.org/dtds/struts-2.1.7.dtd">
    -->
    <!--
    <!ATTLIST 元素名称 属性名称 属性类型 默认值>

    以下是属性类型的选项
    类型 描述
    CDATA 值为字符数据(character data)
    (en1|en2|..) 此值是枚举列表中的一个值
    ID 值为唯一的id
    IDREF 值为另外一个元素的id
    IDREFS 值为其他id的列表
    NMTOKEN 值为合法的XML名称
    NMTOKENS 值为合法的XML名称列表
    ENTITY 值是一个实体
    ENTITYS 值是一个实体列表
    NOTATION 此值是符号的名称
    xml 值是一个预定义的XML值

    默认值参数可使用下列值:
    值 解释
    #REQUIRED 属性值是必须的
    #IMPLIED 属性值不是必须的
    #FIXED value 属性值是固定的
    -->
    <!--
    DTD声明一个元素
    <!ELEMENT 元素名称 类别> 或者 <!ELEMENT 元素名称(元素内容)>
    空元素
    <!ELEMENT 元素名称 EMPTY>
    只有 PCDATA 的元素
    <!ELEMENT 元素名称 (#PCDATA)>
    带有任何内容的元素
    <!ELEMENT 元素名称 ANY>
    带有子元素(序列)的元素
    <!ELEMENT 元素名称 (子元素名称 1)>
    或者 <!ELEMENT 元素名称 (子元素名称 1,子元素名称 2,.....)>
    声明只出现一次的元素
    <!ELEMENT 元素名称 (子元素名称)>
    声明最少出现一次的元素 +
    <!ELEMENT 元素名称 (子元素名称+)>
    声明出现零次或多次的元素 *
    <!ELEMENT 元素名称 (子元素名称*)>
    声明出现零次或一次的元素 ?
    <!ELEMENT 元素名称 (子元素名称?)>
    声明“非.../既...”类型的内容
    <!ELEMENT note (to,from,header,(message|body))>
    上面的例子声明了:"note" 元素必须包含 "to" 元素、"from" 元素、"header" 元素,以及非 "message" 元素既 "body" 元素。
    -->


    <!ELEMENT struts ((package|include|bean|constant)*, unknown-handler-stack?)>
    <!ATTLIST struts
    order CDATA #IMPLIED
    >

    <!ELEMENT package (result-types?, interceptors?, default-interceptor-ref?, default-action-ref?, default-class-ref?, global-results?, global-exception-mappings?, action*)>
    <!ATTLIST package
    name CDATA #REQUIRED
    extends CDATA #IMPLIED
    namespace CDATA #IMPLIED
    abstract CDATA #IMPLIED
    externalReferenceResolver NMTOKEN #IMPLIED
    >

    <!--

    用于管理Action和拦截器等,给个包就是name属性,每个包就是多个Action,多个拦截器的,多个拦截器引用的集合.

    name:必填属性,指定该包的名字,该名字是该包被其它包引用的key.

    extends:可选属性,指定该包继承其他包。继承其他包,可以继承其他包中的Action定义、拦截器定义等。

    namespace:可选属性,定义该包的命名空间。

    abstract:可选属性,指定该包是否是一个抽象包。抽象包不能包含Action定义。

    命名空间配置:

    用来管理Action。同一个命名空间里不能有同名的Action,不同的命名空间里可以有同名的Action。

    如果包没有指定namespace属性,即该包使用默认的命名空间,则默认的命名空间总是""。

    当包指定了命名空间后,该包下所有Action处理的URL应该是命名空间+Action名。

    还可以显示指定根命名空间,通过设置某个包的namespace="/"来指定根命名空间。

    -->

    <!ELEMENT result-types (result-type+)>

    <!ELEMENT result-type (param*)>
    <!ATTLIST result-type
    name CDATA #REQUIRED
    class CDATA #REQUIRED
    default (true|false) "false"
    >
    <!--
    <result-type.../>元素定义一个结果类型。
    name:属性指定了该结果类型的名字。
    class:属性指定了该结果类型的实现类
    归纳起来,Struts2内建支持结果类型如下:
    chain:Action链式处理的结果类型。
    chart:用于整合JFreeChart的结果类型。
    dispatcher:用于整合JSP的结果类型。(默认的类型)
    freemarker:用于整合FreeMarker的结果类型。
    httpheader:用于控制特殊的HTTP行为的结果类型。
    jasper:用于整合JasperReports的结果类型。
    jsf:用于整合JSF的结果类型。
    redirect:用于直接跳转到其他URL的结果类型。
    redirect-action:用于直接跳转到其他Action的结果类型。
    stream:用于向浏览器返回一个InputStream(一般用于文件下载)。
    titles:用于整合Tiles的结果类型。
    velocity:用于整合Velocity的结果类型。
    xslt:用于整合XML/XSLT的结果类型。
    plaintext:用于显示某个页面的原始代码的结果类型.
    -->

    <!ELEMENT interceptors (interceptor|interceptor-stack)+>

    <!ELEMENT interceptor (param*)>
    <!ATTLIST interceptor
    name CDATA #REQUIRED
    class CDATA #REQUIRED
    >

    <!ELEMENT interceptor-stack (interceptor-ref*)>
    <!ATTLIST interceptor-stack
    name CDATA #REQUIRED
    >

    <!ELEMENT interceptor-ref (param*)>
    <!ATTLIST interceptor-ref
    name CDATA #REQUIRED
    >

    <!ELEMENT default-interceptor-ref (#PCDATA)>
    <!ATTLIST default-interceptor-ref
    name CDATA #REQUIRED
    >

    <!ELEMENT default-action-ref (#PCDATA)>
    <!ATTLIST default-action-ref
    name CDATA #REQUIRED
    >

    <!ELEMENT default-class-ref (#PCDATA)>
    <!ATTLIST default-class-ref
    class CDATA #REQUIRED
    >

    <!ELEMENT global-results (result+)>

    <!ELEMENT global-exception-mappings (exception-mapping+)>

    <!ELEMENT action (param|result|interceptor-ref|exception-mapping)*>
    <!ATTLIST action
    name CDATA #REQUIRED
    class CDATA #IMPLIED
    method CDATA #IMPLIED
    converter CDATA #IMPLIED
    >

    <!ELEMENT param (#PCDATA)>
    <!ATTLIST param
    name CDATA #REQUIRED
    >

    <!ELEMENT result (#PCDATA|param)*>
    <!ATTLIST result
    name CDATA #IMPLIED
    type CDATA #IMPLIED
    >

    <!ELEMENT exception-mapping (#PCDATA|param)*>
    <!ATTLIST exception-mapping
    name CDATA #IMPLIED
    exception CDATA #REQUIRED
    result CDATA #REQUIRED
    >

    <!ELEMENT include (#PCDATA)>
    <!ATTLIST include
    file CDATA #REQUIRED
    >

    <!--

    当通过多个struts.xml文件来配置Action,但struts2默认只加载WEB-INF/classes下的struts.xml文件。通过<include.../>元素可以实现以上需求。

    file:指定被包含配置文件的文件名。

    -->

    <!ELEMENT bean (#PCDATA)>
    <!ATTLIST bean
    type CDATA #IMPLIED
    name CDATA #IMPLIED
    class CDATA #REQUIRED
    scope CDATA #IMPLIED
    static CDATA #IMPLIED
    optional CDATA #IMPLIED
    >
    <!--
    bean属性:
    class: 必填属性,它指定了Bean实例的实现类
    type: 可选属性,它指定了实例实现的Struts2规范,该规范通常是通过某个接口来实现的,
    因此该属性的值通常是一个Struts2接口。如果需要将Bean实例作为Struts2组件
    来使用,则应该指定该属性值。
    name: 该属性指定了Bean实例的名字,对于相同type类型的多个Bean,
    则它们的name属性不能相同。这个属性也是一个可选属性。
    scope: 该属性指定Bean实例的作用域。该属性是个可选属性,
    属性值只能是default、singleton、request、session或thread其中之一。
    static: 该属性指定Bean是否使用静态方法注入。通常而言,指定了type属性时,该属性不应该指定为true。
    optional:该属性指定该Bean是否是一个可选Bean,该属性是一个可选属性。
    -->

    <!ELEMENT constant (#PCDATA)>
    <!ATTLIST constant
    name CDATA #REQUIRED
    value CDATA #REQUIRED
    >

    <!--

    constant:用于配置常量

    name:指定常量name

    value:指定常量value

    作用相当于配置struts.properties

    -->

    <!ELEMENT unknown-handler-stack (unknown-handler-ref*)>
    <!ELEMENT unknown-handler-ref (#PCDATA)>
    <!ATTLIST unknown-handler-ref
    name CDATA #REQUIRED
    >

    <!-- END SNIPPET: strutsDtd -->

    展开全文
  • &lt;?xml version="1.0"... * $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contr...
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
    /*
     * $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $
     *
     * Licensed to the Apache Software Foundation (ASF) under one
     * or more contributor license agreements.  See the NOTICE file
     * distributed with this work for additional information
     * regarding copyright ownership.  The ASF licenses this file
     * to you under the Apache License, Version 2.0 (the
     * "License"); you may not use this file except in compliance
     * with the License.  You may obtain a copy of the License at
     *
     *  http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing,
     * software distributed under the License is distributed on an
     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     * KIND, either express or implied.  See the License for the
     * specific language governing permissions and limitations
     * under the License.
     */
    -->
    <!-- START SNIPPET: strutsDtd -->
    
    <!--
       Struts configuration DTD.
       Use the following DOCTYPE
    
       <!DOCTYPE struts PUBLIC
        "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
        "http://struts.apache.org/dtds/struts-2.3.dtd">
    -->
    
    <!ELEMENT struts ((package|include|bean|constant)*, unknown-handler-stack?)>
    <!ATTLIST struts
        order CDATA #IMPLIED
    >
    
    <!ELEMENT package (result-types?, interceptors?, default-interceptor-ref?, default-action-ref?, default-class-ref?, global-results?, global-exception-mappings?, action*)>
    <!ATTLIST package
        name CDATA #REQUIRED
        extends CDATA #IMPLIED
        namespace CDATA #IMPLIED
        abstract CDATA #IMPLIED
        strict-method-invocation CDATA #IMPLIED
        externalReferenceResolver NMTOKEN #IMPLIED
    >
    
    <!ELEMENT result-types (result-type+)>
    
    <!ELEMENT result-type (param*)>
    <!ATTLIST result-type
        name CDATA #REQUIRED
        class CDATA #REQUIRED
        default (true|false) "false"
    >
    
    <!ELEMENT interceptors (interceptor|interceptor-stack)+>
    
    <!ELEMENT interceptor (param*)>
    <!ATTLIST interceptor
        name CDATA #REQUIRED
        class CDATA #REQUIRED
    >
    
    <!ELEMENT interceptor-stack (interceptor-ref*)>
    <!ATTLIST interceptor-stack
        name CDATA #REQUIRED
    >
    
    <!ELEMENT interceptor-ref (param*)>
    <!ATTLIST interceptor-ref
        name CDATA #REQUIRED
    >
    
    <!ELEMENT default-interceptor-ref (#PCDATA)>
    <!ATTLIST default-interceptor-ref
        name CDATA #REQUIRED
    >
    
    <!ELEMENT default-action-ref (#PCDATA)>
    <!ATTLIST default-action-ref
        name CDATA #REQUIRED
    >
    
    <!ELEMENT default-class-ref (#PCDATA)>
    <!ATTLIST default-class-ref
        class CDATA #REQUIRED
    >
    
    <!ELEMENT global-results (result+)>
    
    <!ELEMENT global-exception-mappings (exception-mapping+)>
    
    <!ELEMENT action ((param|result|interceptor-ref|exception-mapping)*,allowed-methods?)>
    <!ATTLIST action
        name CDATA #REQUIRED
        class CDATA #IMPLIED
        method CDATA #IMPLIED
        converter CDATA #IMPLIED
    >
    
    <!ELEMENT param (#PCDATA)>
    <!ATTLIST param
        name CDATA #REQUIRED
    >
    
    <!ELEMENT result (#PCDATA|param)*>
    <!ATTLIST result
        name CDATA #IMPLIED
        type CDATA #IMPLIED
    >
    
    <!ELEMENT exception-mapping (#PCDATA|param)*>
    <!ATTLIST exception-mapping
        name CDATA #IMPLIED
        exception CDATA #REQUIRED
        result CDATA #REQUIRED
    >
    
    <!ELEMENT allowed-methods (#PCDATA)>
    
    <!ELEMENT include (#PCDATA)>
    <!ATTLIST include
        file CDATA #REQUIRED
    >
    
    <!ELEMENT bean (#PCDATA)>
    <!ATTLIST bean
        type CDATA #IMPLIED
        name CDATA #IMPLIED
        class CDATA #REQUIRED
        scope CDATA #IMPLIED
        static CDATA #IMPLIED
        optional CDATA #IMPLIED
    >
    
    <!ELEMENT constant (#PCDATA)>
    <!ATTLIST constant
        name CDATA #REQUIRED
        value CDATA #REQUIRED
    >
    
    <!ELEMENT unknown-handler-stack (unknown-handler-ref*)>
    <!ELEMENT unknown-handler-ref (#PCDATA)>
    <!ATTLIST unknown-handler-ref
        name CDATA #REQUIRED
    >
    
    <!-- END SNIPPET: strutsDtd -->
    
    
    展开全文
  • 第一个运行的结果 9bacaf 这个只是替换了第一个 第二个运行的结果 9b9c9f 这个能实现js的全部替换功能 其实第二个的意思就是用正则表达式实现全局的替换 g 代表 gobal 另附:带有特殊符号的全局替换 代码如下: <...
  • Struts-2.1翻译及源文件

    2014-10-11 10:03:12
    源文件 ?xml version="1.0" ... * $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $  *  * Licensed to the Apache Software Foundation (ASF) under one  * or more contr

    <!--源文件

    <?xml version="1.0" encoding="UTF-8"?>

    <!--

    /*

     * $Id: struts-2.0.dtd 651946 2008-04-27 13:41:38Z apetrelli $

     *

     * Licensed to the Apache Software Foundation (ASF) under one

     * or more contributor license agreements.  See the NOTICE file

     * distributed with this work for additional information

     * regarding copyright ownership.  The ASF licenses this file

     * to you under the Apache License, Version 2.0 (the

     * "License"); you may not use this file except in compliance

     * with the License.  You may obtain a copy of the License at

     *

     *  http://www.apache.org/licenses/LICENSE-2.0

     *

     * Unless required by applicable law or agreed to in writing,

     * software distributed under the License is distributed on an

     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

     * KIND, either express or implied.  See the License for the

     * specific language governing permissions and limitations

     * under the License.

     */

    -->

    <!-- START SNIPPET: strutsDtd -->

     

    <!--

       Struts configuration DTD.

       Use the following DOCTYPE

     

       <!DOCTYPE struts PUBLIC

    "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"

    "http://struts.apache.org/dtds/struts-2.1.dtd">

    -->

     

    <!ELEMENT struts ((package|include|bean|constant)*, unknown-handler-stack?)>

     

    <!ELEMENT package (result-types?, interceptors?, default-interceptor-ref?, default-action-ref?, default-class-ref?, global-results?, global-exception-mappings?, action*)>

    <!ATTLIST package

        name CDATA #REQUIRED

        extends CDATA #IMPLIED

        namespace CDATA #IMPLIED

        abstract CDATA #IMPLIED

        externalReferenceResolver NMTOKEN #IMPLIED

    >

     

    <!ELEMENT result-types (result-type+)>

     

    <!ELEMENT result-type (param*)>

    <!ATTLIST result-type

        name CDATA #REQUIRED

        class CDATA #REQUIRED

        default (true|false"false"

    >

     

    <!ELEMENT interceptors (interceptor|interceptor-stack)+>

     

    <!ELEMENT interceptor (param*)>

    <!ATTLIST interceptor

        name CDATA #REQUIRED

        class CDATA #REQUIRED

    >

     

    <!ELEMENT interceptor-stack (interceptor-ref*)>

    <!ATTLIST interceptor-stack

        name CDATA #REQUIRED

    >

     

    <!ELEMENT interceptor-ref (param*)>

    <!ATTLIST interceptor-ref

        name CDATA #REQUIRED

    >

     

    <!ELEMENT default-interceptor-ref (#PCDATA)>

    <!ATTLIST default-interceptor-ref

        name CDATA #REQUIRED

    >

     

    <!ELEMENT default-action-ref (#PCDATA)>

    <!ATTLIST default-action-ref

        name CDATA #REQUIRED

    >

     

    <!ELEMENT default-class-ref (#PCDATA)>

    <!ATTLIST default-class-ref

        class CDATA #REQUIRED

    >

     

    <!ELEMENT global-results (result+)>

     

    <!ELEMENT global-exception-mappings (exception-mapping+)>

     

    <!ELEMENT action (param|result|interceptor-ref|exception-mapping)*>

    <!ATTLIST action

        name CDATA #REQUIRED

        class CDATA #IMPLIED

        method CDATA #IMPLIED

        converter CDATA #IMPLIED

    >

     

    <!ELEMENT param (#PCDATA)>

    <!ATTLIST param

        name CDATA #REQUIRED

    >

     

    <!ELEMENT result (#PCDATA|param)*>

    <!ATTLIST result

        name CDATA #IMPLIED

        type CDATA #IMPLIED

    >

     

    <!ELEMENT exception-mapping (#PCDATA|param)*>

    <!ATTLIST exception-mapping

        name CDATA #IMPLIED

        exception CDATA #REQUIRED

        result CDATA #REQUIRED

    >

     

    <!ELEMENT include (#PCDATA)>

    <!ATTLIST include

        file CDATA #REQUIRED

    >

     

    <!ELEMENT bean (#PCDATA)>

    <!ATTLIST bean

        type CDATA #IMPLIED

        name CDATA #IMPLIED

        class CDATA #REQUIRED

        scope CDATA #IMPLIED

        static CDATA #IMPLIED

        optional CDATA #IMPLIED

    >

     

    <!ELEMENT constant (#PCDATA)>

    <!ATTLIST constant

        name CDATA #REQUIRED

        value CDATA #REQUIRED

    >

     

    <!ELEMENT unknown-handler-stack (unknown-handler-ref*)>

    <!ELEMENT unknown-handler-ref (#PCDATA)>

    <!ATTLIST unknown-handler-ref

        name CDATA #REQUIRED

    >

     

    <!-- END SNIPPET: strutsDtd -->

    -->

    <!--翻译

    <?xml version="1.0" encoding="UTF-8"?>

    <!DOCTYPE struts SYSTEM "struts-2.1.dtd">

    <struts>

    <!--package开始 -->

    <!-- package可以出现多次,并且是任意出现的 ,package中的name是必须有的,其他的是可有可无的 -->

    <package name="x" extends="" namespace="" abstract=""

    externalReferenceResolver="x">

    <!-- result-types开始 -->

    <!-- ruesult-types中 有1个或者多个result-type-->

    <result-types>

        <!-- result-type中有0到多个param,并且 name值和class值是必须有的,default (true|false) "false"可有可无,默认是false-->

    <result-type name="" class="">

    <param name=""></param><param name=""></param>

    <param name=""></param><param name=""></param>

    </result-type>

    <result-type name="" class="">

    <param name=""></param><param name=""></param>

    </result-type>

    </result-types>

    <!-- result-types结束-->

    <!--interceptors开始 -->

    <!--interceptors中的interceptorinterceptor-stack有1个到多个,至少有1个-->

    <interceptors>

    <!-- interceptor中的param有0到多个,并且name和class必须有 -->

    <interceptor name="" class="">

    <param name=""></param><param name=""></param>

    </interceptor>

    <!-- interceptor-stack中的interceptor-ref有0到多个,并且interceptor-stack的name必须有 -->

    <interceptor-stack name="">

    <!--  interceptor-ref中的param有0到多个,但name必须有-->

    <interceptor-ref name=""></interceptor-ref>

    </interceptor-stack>

    </interceptors>

    <!--interceptors结束 -->

    <!-- default-interceptor-ref 开始 -->

    <!--default-interceptor-ref,中间是字符串,name必须有  -->

    <default-interceptor-ref name=""></default-interceptor-ref>

    <!-- default-interceptor-ref 结束 -->

    <!-- default-action-ref开始 -->

    <!--default-action-ref,中间是字符串,name必须有  -->

    <default-action-ref name=""></default-action-ref>

    <!-- default-action-ref结束 -->

    <!-- default-class-ref开始 -->

    <!--default-class-ref,中间是字符串,name必须有  -->

    <default-class-ref class=""></default-class-ref>

    <!-- default-class-ref结束 -->

    <!-- global-results开始 -->

    <!-- global-results中的result有1到多个 -->

    <global-results>

    <result></result>

    </global-results>

    <!-- global-results结束-->

    <!--global-exception-mappings开始  -->

    <!--global-exception-mappings中的exception-mapping有1到多个  -->

    <global-exception-mappings>

    <exception-mapping result="" exception=""></exception-mapping>

    </global-exception-mappings>

    <!--global-exception-mappings结束  -->

    <!-- action开始 -->

    <!-- action中的param ,result, interceptor-ref, exception-mapping可以有任意个并且没有顺序 。 name 必须有,class可有可无 ,method可有可无,converter可有可无-->

    <action name="x">

    <!-- param 中间是字符串,name必须有-->

    <param name=""></param>

    <!-- result中#PCDATA,param字符串或param有任意一个,没有顺序,也可以没有,name和type属性可有可无-->

    <result name="" type=""><param name=""></param></result>

    <!-- interceptor-ref中#PCDATA,param字符串或param有任意一个,没有顺序,也可以没有,name属性必须有-->

    <interceptor-ref name="x"><param name=""></param></interceptor-ref>

    <!-- interceptor中#PCDATA,param可以有任意一个没有顺序,name属性可有可无,result和exception必须有 -->

    <exception-mapping result="" exception=""><param name=""></param></exception-mapping>

    </action>

    <!-- action结束 -->

    </package>

    <!--package结束 -->

     

    <!-- constant开始 -->

    <!-- constant可以出现多次,并且是任意出现的,中间为字符串,name和value属性必须有 -->

    <constant name="x" value=""></constant>

    <!-- constant结束 -->

    <!--include开始  -->

    <!--include可以出现多次,并且是任意出现的,中间为字符串,file属性必须有 -->

    <include file=""></include>

    <!-- include结束 -->

    <!--bean开始  -->

    <!-- bean可以出现多次,并且是任意出现的 ,中间为字符串, type 可有可无,name可有可无, scope 可有可无, static 可有可无,optional可有可无, class 必须有

          -->

    <bean class=""></bean>

    <!-- bean结束 -->

    <!--unknown-handler-stack开始  -->

    <!--unknown-handler-stack是最后出现的并且有顺序,出现0或1次 ,unknown-handler-ref有0到多个,-->

    <unknown-handler-stack>

    <!--unknown-handler-ref中间为字符串,name属性必须有-->

    <unknown-handler-ref name=""></unknown-handler-ref>

    <unknown-handler-ref name=""></unknown-handler-ref>

    </unknown-handler-stack>

    <!-- unknown-handler-stack结束 -->

    </struts>

    -->

    展开全文
  • 一个简单的WAP页面

    2005-07-08 18:37:00
    http://www.wapforum.org/DTD/wml_1.1.xml">>>>>请选择进入诺基亚专区WAP通用版-------------------© &#x41;NY在߫f; 2004 
  • XXE DoS within SVG Parsing

    2020-12-28 17:33:56
    <div><h1>Issue <p>androidsvg is ...<p>This ensures that the entities are no longer parsed and external dtd files are not either.</p><p>该提问来源于开源项目:BigBadaboom/androidsvg</p></div>
  • DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Ajax验证用户名是否可用</title> <meta http-equiv="pragma" content="no-cache"> <...
  • JSF文件上传

    2013-03-08 09:32:41
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <param-name>javax.faces.STATE_SAVING_METHOD <param-value>client <!-- Context Listener...
  • JSF 2.1 StateView错误

    2013-02-15 13:43:43
    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui=...
  • webui error

    2020-12-07 01:38:34
    <div><p><em>From <a href="https://code.google.com/u/107214802289937060941/">noers....com</a> on January 24, 2010 03:41:37</em></p> <p>What steps will reproduce the problem? 1. 2. 3. What is the ...
  • 04-02 13:33:20.392 10193 10193 F DEBUG : <strong><em> </em></strong> <strong><em> </em></strong> <strong><em> </em></strong> <strong><em> </em></strong> <strong><em> </em></strong> <strong><em> </em>...
  • - [ ] <code>XML_DTD</code> (default: ON) - [ ] <code>XML_LARGE_SIZE</code> (default: OFF) - [ ] <code>XML_MIN_SIZE</code> (default: OFF) - [ ] <code>XML_NS</code> (default: ON) - [x] <code>XML_UNICODE...
  • Content Encoding Error

    2020-12-09 12:06:01
    0x0460: 6972 633b 2666 7261 6333 343b 7622 4c41 irc;¾v"LA 0x0470: 7538 7726 6163 6972 633b 2655 6772 6176 u8wâ&Ugrav 0x0480: 653b 3826 756d 6c3b 2623 3832 3430 3b36 e;8¨‰6 0x0490: 5226...
  • false // if you want disabled the DTD verification for a proxy problem for example sonar.test.reportPath=test.xml //default sonar.sources=./ <h3>Log of sonar-scanner related to the plugin <p>...
  • 0xb1) [0x559b41] irb() [0x4aaf40] /lib64/libpthread.so.0() [0x327aa0f4a0] /usr/lib64/libxml2.so.2(xmlValidateOneElement+0x23e) [0x3f8e26ccde] /usr/lib64/libxml2.so.2(xmlValidateElement+0x6a) ...
  • http://testng.org/testng-1.0.dtd"> <pre><code><parameter name="driver.name" value="perfectoDriver" /> <test name="IOS iPad air 2 Test" ...
  • "&#41;; return; } var xmlhttp=createAjax(); //创建对象 if (xmlhttp) { xmlhttp.open('get','set.asp?pagesize='+pagesize.value+'&n='+Math.random(),true) //参上同看 xmlhttp.onreadystatechange=...
  • 2019-11-12 15:43:41.310 INFO --- [0.0-5076-exec-2] org.nzbhydra.searching.Searcher : [Search: 590861, Host: <ip>] Returning results 1-1 from 195 results in cache. A total of 228 results is ...
  • <img width="1278" alt="screen shot 2018-03-04 at 00 41 50" src="https://user-images.githubusercontent.com/2149385/36937423-b70de822-1f45-11e8-9957-7bd6e78c3b6a.png" /></p> <p>The Params ...
  • <p>gyazo.com/f88659eef625a14ee41fbe1f4ed30ab2</p> <p>attending = 1 meaning that the person is at the event <p><a href=...
  • apl|asciiarmor|asn.1|asterisk|brainfuck|clike|clojure|cmake|cobol|coffeescript|commonlisp|crystal|css|cypher|d|dart|diff|django|dockerfile|dtd|dylan|ebnf|ecl|eiffel|elm|erlang|factor|fcl|forth|fortran...
  • \x02\x80\xD1[\xFBm\xB0\xEF~1\x1F\xC0MS\xA0\xCF\xC5\xA6$\xCD\x19\xCF\xC4\xF7\xF8m\xDB\xFCFi\x89J\x95\r\x8B\x7F\xA3\xE9\xF7\xF3\xFE\x00\xE8\xDC4\xDD\xA1\xE4]\x8EP\xD1<\xDC\xB2\x83\xB5\x82\x82H\xB8\x...
  • at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main....
  • 79 3c 41 52 15 41 ac bd fa 84 51 41 4e ed a0 5c b4 b6 56 b7 Trying to fetch new SHSH blob Getting SepNonce in dfu mode... 57 23 e7 5b be 93 df a1 34 c1 3a db 3f 2f bd 3b d8 c0 99 ad NOTE: Unable to...
  • spring_MVC源码

    2012-07-31 09:36:31
    41. class="org.springframework.jdbc.datasource.DriverManagerDataSource"> 42. ${dataSource.driverClassName}" /> 43. ${dataSource.url}" /> 44. ${dataSource.username}" /> 45. ${dataSource.password}" ...
  • <p>This crash report was reported through the automatic crash reporting system f916; <h2>Traceback <pre><code>Python traceback File "site-packages\electrum-3.1.1-py3.5.egg\electrum_gui\qt\...
  • RadialGradientBrush trouble

    2020-12-08 20:39:16
    http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:export-ydpi="90.000000" inkscape:export-xdpi=&...
  • UM_distinctid=1738fbd1989b49-06ef27097ca487-504f221b-1fa400-1738fbd198a7a4; CNZZDATA1264458526=411363803-1578288241-null%7C1597655705; XquW6dFMPxV380T=5xLc8RiEIZoxPydzrOCUyx8fMfGBEfp1B9G0pvO37ActOX7...
  • Java开发实战1200例.第2卷.part3

    热门讨论 2013-05-08 22:46:34
    实例006 在XML内部定义DTD 12 实例007 在XML外部引用DTD 14 实例008 验证XML是否符合DTD的定义 15 实例009 在DTD中声明元素 16 实例010 在DTD中声明重复元素 17 实例011 在DTD中声明选择性元素 19 实例012 在DTD中...

空空如也

空空如也

1 2 3
收藏数 60
精华内容 24
关键字:

dtd41f