JBossWeb SVN: r346 - in trunk: java/org/apache/jasper/xmlparser and 1 other directories.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2007-11-14 09:55:35 -0500 (Wed, 14 Nov 2007)
New Revision: 346
Modified:
trunk/java/javax/servlet/jsp/resources/jsp_2_1.xsd
trunk/java/javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd
trunk/java/org/apache/jasper/xmlparser/ParserUtils.java
trunk/webapps/docs/changelog.xml
Log:
- Port two minor Tomcat patches.
Modified: trunk/java/javax/servlet/jsp/resources/jsp_2_1.xsd
===================================================================
--- trunk/java/javax/servlet/jsp/resources/jsp_2_1.xsd 2007-11-13 18:31:48 UTC (rev 345)
+++ trunk/java/javax/servlet/jsp/resources/jsp_2_1.xsd 2007-11-14 14:55:35 UTC (rev 346)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
+
<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
+ 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
@@ -16,344 +17,57 @@
limitations under the License.
-->
-<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://java.sun.com/xml/ns/javaee"
- xmlns:javaee="http://java.sun.com/xml/ns/javaee"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- elementFormDefault="qualified"
- attributeFormDefault="unqualified"
- version="2.1">
- <xsd:annotation>
- <xsd:documentation>
- @(#)jsp_2_1.xsds 1.5 08/11/05
- </xsd:documentation>
- </xsd:annotation>
+<!--
+ ** The actual Sun XSD for this stripped down XSD can be found at
+ ** http://java.sun.com/xml/ns/javaee/jsp_2_1.xsd
+ ** This XSD contains only the functional elements for programatic use.
+-->
- <xsd:annotation>
- <xsd:documentation>
+<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://java.sun.com/xml/ns/javaee"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="2.1">
- Copyright 2003-2005 Sun Microsystems, Inc.
- 4150 Network Circle
- Santa Clara, California 95054
- U.S.A
- All rights reserved.
+ <xsd:include schemaLocation="javaee_5.xsd" />
- Sun Microsystems, Inc. has intellectual property rights
- relating to technology described in this document. In
- particular, and without limitation, these intellectual
- property rights may include one or more of the U.S. patents
- listed at http://www.sun.com/patents and one or more
- additional patents or pending patent applications in the
- U.S. and other countries.
+ <xsd:complexType name="jsp-configType">
+ <xsd:sequence>
+ <xsd:element name="taglib" type="javaee:taglibType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="jsp-property-group" type="javaee:jsp-property-groupType" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- This document and the technology which it describes are
- distributed under licenses restricting their use, copying,
- distribution, and decompilation. No part of this document
- may be reproduced in any form by any means without prior
- written authorization of Sun and its licensors, if any.
+ <xsd:complexType name="jsp-fileType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:pathType" />
+ </xsd:simpleContent>
+ </xsd:complexType>
- Third-party software, including font technology, is
- copyrighted and licensed from Sun suppliers.
+ <xsd:complexType name="jsp-property-groupType">
+ <xsd:sequence>
+ <xsd:group ref="javaee:descriptionGroup"/>
+ <xsd:element name="url-pattern" type="javaee:url-patternType" maxOccurs="unbounded" />
+ <xsd:element name="el-ignored" type="javaee:true-falseType" minOccurs="0" />
+ <xsd:element name="page-encoding" type="javaee:string" minOccurs="0" />
+ <xsd:element name="scripting-invalid" type="javaee:true-falseType" minOccurs="0" />
+ <xsd:element name="is-xml" type="javaee:true-falseType" minOccurs="0" />
+ <xsd:element name="include-prelude" type="javaee:pathType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="include-coda" type="javaee:pathType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="deferred-syntax-allowed-as-literal" type="javaee:true-falseType" minOccurs="0" />
+ <xsd:element name="trim-directive-whitespaces" type="javaee:true-falseType" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
- JavaServer Pages, Enterprise JavaBeans and the Java Coffee
- Cup logo are trademarks or registered trademarks of Sun
- Microsystems, Inc. in the U.S. and other countries.
-
- Federal Acquisitions: Commercial Software - Government Users
- Subject to Standard License Terms and Conditions.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:annotation>
- <xsd:documentation>
-
- This is the XML Schema for the JSP 2.1 deployment descriptor
- types. The JSP 2.1 schema contains all the special
- structures and datatypes that are necessary to use JSP files
- from a web application.
-
- The contents of this schema is used by the web-app_2_5.xsd
- file to define JSP specific content.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:annotation>
- <xsd:documentation>
-
- The following conventions apply to all Java EE
- deployment descriptor elements unless indicated otherwise.
-
- - In elements that specify a pathname to a file within the
- same JAR file, relative filenames (i.e., those not
- starting with "/") are considered relative to the root of
- the JAR file's namespace. Absolute filenames (i.e., those
- starting with "/") also specify names in the root of the
- JAR file's namespace. In general, relative names are
- preferred. The exception is .war files where absolute
- names are preferred for consistency with the Servlet API.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:include schemaLocation="javaee_5.xsd"/>
-
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="jsp-configType">
- <xsd:annotation>
- <xsd:documentation>
-
- The jsp-configType is used to provide global configuration
- information for the JSP files in a web application. It has
- two subelements, taglib and jsp-property-group.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:element name="taglib"
- type="javaee:taglibType"
- minOccurs="0"
- maxOccurs="unbounded"/>
- <xsd:element name="jsp-property-group"
- type="javaee:jsp-property-groupType"
- minOccurs="0"
- maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="jsp-fileType">
- <xsd:annotation>
- <xsd:documentation>
-
- The jsp-file element contains the full path to a JSP file
- within the web application beginning with a `/'.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:simpleContent>
- <xsd:restriction base="javaee:pathType"/>
- </xsd:simpleContent>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="jsp-property-groupType">
- <xsd:annotation>
- <xsd:documentation>
-
- The jsp-property-groupType is used to group a number of
- files so they can be given global property information.
- All files so described are deemed to be JSP files. The
- following additional properties can be described:
-
- - Control whether EL is ignored.
- - Control whether scripting elements are invalid.
- - Indicate pageEncoding information.
- - Indicate that a resource is a JSP document (XML).
- - Prelude and Coda automatic includes.
- - Control whether the character sequence #{ is allowed
- when used as a String literal.
- - Control whether template text containing only
- whitespaces must be removed from the response output.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:group ref="javaee:descriptionGroup"/>
- <xsd:element name="url-pattern"
- type="javaee:url-patternType"
- maxOccurs="unbounded"/>
- <xsd:element name="el-ignored"
- type="javaee:true-falseType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Can be used to easily set the isELIgnored
- property of a group of JSP pages. By default, the
- EL evaluation is enabled for Web Applications using
- a Servlet 2.4 or greater web.xml, and disabled
- otherwise.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="page-encoding"
- type="javaee:string"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- The valid values of page-encoding are those of the
- pageEncoding page directive. It is a
- translation-time error to name different encodings
- in the pageEncoding attribute of the page directive
- of a JSP page and in a JSP configuration element
- matching the page. It is also a translation-time
- error to name different encodings in the prolog
- or text declaration of a document in XML syntax and
- in a JSP configuration element matching the document.
- It is legal to name the same encoding through
- mulitple mechanisms.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="scripting-invalid"
- type="javaee:true-falseType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Can be used to easily disable scripting in a
- group of JSP pages. By default, scripting is
- enabled.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="is-xml"
- type="javaee:true-falseType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- If true, denotes that the group of resources
- that match the URL pattern are JSP documents,
- and thus must be interpreted as XML documents.
- If false, the resources are assumed to not
- be JSP documents, unless there is another
- property group that indicates otherwise.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="include-prelude"
- type="javaee:pathType"
- minOccurs="0"
- maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation>
-
- The include-prelude element is a context-relative
- path that must correspond to an element in the
- Web Application. When the element is present,
- the given path will be automatically included (as
- in an include directive) at the beginning of each
- JSP page in this jsp-property-group.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="include-coda"
- type="javaee:pathType"
- minOccurs="0"
- maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation>
-
- The include-coda element is a context-relative
- path that must correspond to an element in the
- Web Application. When the element is present,
- the given path will be automatically included (as
- in an include directive) at the end of each
- JSP page in this jsp-property-group.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="deferred-syntax-allowed-as-literal"
- type="javaee:true-falseType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- The character sequence #{ is reserved for EL expressions.
- Consequently, a translation error occurs if the #{
- character sequence is used as a String literal, unless
- this element is enabled (true). Disabled (false) by
- default.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="trim-directive-whitespaces"
- type="javaee:true-falseType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Indicates that template text containing only whitespaces
- must be removed from the response output. It has no
- effect on JSP documents (XML syntax). Disabled (false)
- by default.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="taglibType">
- <xsd:annotation>
- <xsd:documentation>
-
- The taglibType defines the syntax for declaring in
- the deployment descriptor that a tag library is
- available to the application. This can be done
- to override implicit map entries from TLD files and
- from the container.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:element name="taglib-uri"
- type="javaee:string">
- <xsd:annotation>
- <xsd:documentation>
-
- A taglib-uri element describes a URI identifying a
- tag library used in the web application. The body
- of the taglib-uri element may be either an
- absolute URI specification, or a relative URI.
- There should be no entries in web.xml with the
- same taglib-uri value.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
-
- <xsd:element name="taglib-location"
- type="javaee:pathType">
- <xsd:annotation>
- <xsd:documentation>
-
- the taglib-location element contains the location
- (as a resource relative to the root of the web
- application) where to find the Tag Library
- Description file for the tag library.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
-
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-</xsd:schema>
-
+ <xsd:complexType name="taglibType">
+ <xsd:sequence>
+ <xsd:element name="taglib-uri" type="javaee:string" />
+ <xsd:element name="taglib-location" type="javaee:pathType" />
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
+</xsd:schema>
\ No newline at end of file
Modified: trunk/java/javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd
===================================================================
--- trunk/java/javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd 2007-11-13 18:31:48 UTC (rev 345)
+++ trunk/java/javax/servlet/jsp/resources/web-jsptaglibrary_2_1.xsd 2007-11-14 14:55:35 UTC (rev 346)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
+
<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
+ 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
@@ -16,1145 +17,213 @@
limitations under the License.
-->
-<xsd:schema
- targetNamespace="http://java.sun.com/xml/ns/javaee"
- xmlns:javaee="http://java.sun.com/xml/ns/javaee"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- elementFormDefault="qualified"
- attributeFormDefault="unqualified"
- version="2.1">
+<!--
+ ** This XSD contains only the programatic elements required for an implementation.
+ ** For the XSD from Sun that includes documentation and other copyrighted information
+ ** please refer to http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd for a fully documented and latest
+ ** XSD.
+-->
- <xsd:annotation>
- <xsd:documentation>
- @(#)web-jsptaglibrary_2_1.xsds 1.1
- </xsd:documentation>
- </xsd:annotation>
+<xsd:schema targetNamespace="http://java.sun.com/xml/ns/javaee"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="2.1">
- <xsd:annotation>
- <xsd:documentation>
+ <xsd:include schemaLocation="javaee_5.xsd" />
- Copyright 2003-2005 Sun Microsystems, Inc.
- 4150 Network Circle
- Santa Clara, California 95054
- U.S.A
- All rights reserved.
+ <xsd:element name="taglib" type="javaee:tldTaglibType">
+ <xsd:unique name="tag-name-uniqueness">
+ <xsd:selector xpath="javaee:tag|javaee:tag-file" />
+ <xsd:field xpath="javaee:name" />
+ </xsd:unique>
- Sun Microsystems, Inc. has intellectual property rights
- relating to technology described in this document. In
- particular, and without limitation, these intellectual
- property rights may include one or more of the U.S. patents
- listed at http://www.sun.com/patents and one or more
- additional patents or pending patent applications in the
- U.S. and other countries.
+ <xsd:unique name="function-name-uniqueness">
+ <xsd:selector xpath="javaee:function" />
+ <xsd:field xpath="javaee:name" />
+ </xsd:unique>
+ </xsd:element>
- This document and the technology which it describes are
- distributed under licenses restricting their use, copying,
- distribution, and decompilation. No part of this document
- may be reproduced in any form by any means without prior
- written authorization of Sun and its licensors, if any.
+ <xsd:complexType name="body-contentType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:string">
+ <xsd:enumeration value="tagdependent" />
+ <xsd:enumeration value="JSP" />
+ <xsd:enumeration value="empty" />
+ <xsd:enumeration value="scriptless" />
+ </xsd:restriction>
+ </xsd:simpleContent>
+ </xsd:complexType>
- Third-party software, including font technology, is
- copyrighted and licensed from Sun suppliers.
+ <xsd:complexType name="extensibleType" abstract="true">
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE,
- JavaServer Pages, Enterprise JavaBeans and the Java Coffee
- Cup logo are trademarks or registered trademarks of Sun
- Microsystems, Inc. in the U.S. and other countries.
+ <xsd:complexType name="functionType">
+ <xsd:sequence>
+ <xsd:group ref="javaee:descriptionGroup" />
+ <xsd:element name="name" type="javaee:tld-canonical-nameType"></xsd:element>
+ <xsd:element name="function-class" type="javaee:fully-qualified-classType"></xsd:element>
+ <xsd:element name="function-signature" type="javaee:string"></xsd:element>
+ <xsd:element name="example" type="javaee:xsdStringType" minOccurs="0"></xsd:element>
+ <xsd:element name="function-extension" type="javaee:tld-extensionType" minOccurs="0" maxOccurs="unbounded"></xsd:element>
- Federal Acquisitions: Commercial Software - Government Users
- Subject to Standard License Terms and Conditions.
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- </xsd:documentation>
- </xsd:annotation>
+ <xsd:complexType name="tagFileType">
+ <xsd:sequence>
+ <xsd:group ref="javaee:descriptionGroup" />
+ <xsd:element name="name" type="javaee:tld-canonical-nameType" />
+ <xsd:element name="path" type="javaee:pathType" />
+ <xsd:element name="example" type="javaee:xsdStringType" minOccurs="0"></xsd:element>
+ <xsd:element name="tag-extension" type="javaee:tld-extensionType" minOccurs="0" maxOccurs="unbounded"></xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
+ <xsd:complexType name="tagType">
+ <xsd:sequence>
+ <xsd:group ref="javaee:descriptionGroup" />
+ <xsd:element name="name" type="javaee:tld-canonical-nameType" />
+ <xsd:element name="tag-class" type="javaee:fully-qualified-classType"></xsd:element>
+ <xsd:element name="tei-class" type="javaee:fully-qualified-classType" minOccurs="0"></xsd:element>
+ <xsd:element name="body-content" type="javaee:body-contentType"></xsd:element>
+ <xsd:element name="variable" type="javaee:variableType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="attribute" type="javaee:tld-attributeType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="dynamic-attributes" type="javaee:generic-booleanType" minOccurs="0" />
+ <xsd:element name="example" type="javaee:xsdStringType" minOccurs="0" />
+ <xsd:element name="tag-extension" type="javaee:tld-extensionType" minOccurs="0" maxOccurs="unbounded" />
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- This is the XML Schema for the JSP Taglibrary
- descriptor. All Taglibrary descriptors must
- indicate the tag library schema by using the Taglibrary
- namespace:
+ <xsd:complexType name="tld-attributeType">
+ <xsd:sequence>
+ <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
- http://java.sun.com/xml/ns/javaee
+ <xsd:element name="name" type="javaee:java-identifierType" />
+ <xsd:element name="required" type="javaee:generic-booleanType" minOccurs="0"></xsd:element>
+ <xsd:choice>
- and by indicating the version of the schema by
- using the version element as shown below:
+ <xsd:sequence>
+ <xsd:sequence minOccurs="0">
+ <xsd:element name="rtexprvalue" type="javaee:generic-booleanType"></xsd:element>
- <taglib xmlns="http://java.sun.com/xml/ns/javaee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="..."
- version="2.1">
- ...
- </taglib>
+ <xsd:element name="type" type="javaee:fully-qualified-classType" minOccurs="0"></xsd:element>
+ </xsd:sequence>
- The instance documents may indicate the published
- version of the schema using xsi:schemaLocation attribute
- for Java EE namespace with the following location:
+ <xsd:choice>
+ <xsd:element name="deferred-value" type="javaee:tld-deferred-valueType" minOccurs="0"></xsd:element>
+ <xsd:element name="deferred-method" type="javaee:tld-deferred-methodType" minOccurs="0"></xsd:element>
+ </xsd:choice>
+ </xsd:sequence>
- http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd
+ <xsd:element name="fragment" type="javaee:generic-booleanType" minOccurs="0"></xsd:element>
- ]]>
- </xsd:documentation>
- </xsd:annotation>
+ </xsd:choice>
- <xsd:include schemaLocation="javaee_5.xsd"/>
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
+ <xsd:complexType name="tld-canonical-nameType">
+ <xsd:simpleContent>
+ <xsd:restriction base="javaee:xsdNMTOKENType" />
+ </xsd:simpleContent>
+ </xsd:complexType>
-<!-- **************************************************** -->
+ <xsd:complexType name="tld-deferred-methodType">
+ <xsd:sequence>
+ <xsd:element name="method-signature" type="javaee:string" minOccurs="0"></xsd:element>
+ </xsd:sequence>
- <xsd:element name="taglib" type="javaee:tldTaglibType">
- <xsd:annotation>
- <xsd:documentation>
+ <xsd:attribute name="id" type="xsd:ID" />
- The taglib tag is the document root.
- The definition of taglib is provided
- by the tldTaglibType.
+ </xsd:complexType>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:unique name="tag-name-uniqueness">
- <xsd:annotation>
- <xsd:documentation>
+ <xsd:complexType name="tld-deferred-valueType">
- The taglib element contains, among other things, tag and
- tag-file elements.
- The name subelements of these elements must each be unique.
+ <xsd:sequence>
+ <xsd:element name="type" type="javaee:fully-qualified-classType" minOccurs="0"></xsd:element>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:selector xpath="javaee:tag|javaee:tag-file"/>
- <xsd:field xpath="javaee:name"/>
- </xsd:unique>
+ </xsd:sequence>
- <xsd:unique name="function-name-uniqueness">
- <xsd:annotation>
- <xsd:documentation>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- The taglib element contains function elements.
- The name subelements of these elements must each be unique.
+ <xsd:complexType name="tld-extensionType">
+ <xsd:sequence>
+ <xsd:element name="extension-element" type="javaee:extensibleType" maxOccurs="unbounded" />
+ </xsd:sequence>
- </xsd:documentation>
- </xsd:annotation>
- <xsd:selector xpath="javaee:function"/>
- <xsd:field xpath="javaee:name"/>
- </xsd:unique>
+ <xsd:attribute name="namespace" use="required" type="xsd:anyURI" />
+ <xsd:attribute name="id" type="xsd:ID" />
- </xsd:element>
+ </xsd:complexType>
+ <xsd:complexType name="tldTaglibType">
+ <xsd:sequence>
+ <xsd:group ref="javaee:descriptionGroup" />
+ <xsd:element name="tlib-version" type="javaee:dewey-versionType"></xsd:element>
-<!-- **************************************************** -->
+ <xsd:element name="short-name" type="javaee:tld-canonical-nameType">
- <xsd:complexType name="body-contentType">
- <xsd:annotation>
- <xsd:documentation>
+ </xsd:element>
- Specifies the type of body that is valid for a tag.
- This value is used by the JSP container to validate
- that a tag invocation has the correct body syntax and
- by page composition tools to assist the page author
- in providing a valid tag body.
+ <xsd:element name="uri" type="javaee:xsdAnyURIType" minOccurs="0">
- There are currently four values specified:
+ </xsd:element>
+ <xsd:element name="validator" type="javaee:validatorType" minOccurs="0">
- tagdependent The body of the tag is interpreted by the tag
- implementation itself, and is most likely
- in a different "language", e.g embedded SQL
- statements.
+ </xsd:element>
+ <xsd:element name="listener" type="javaee:listenerType" minOccurs="0" maxOccurs="unbounded"></xsd:element>
+ <xsd:element name="tag" type="javaee:tagType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="tag-file" type="javaee:tagFileType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="function" type="javaee:functionType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="taglib-extension" type="javaee:tld-extensionType" minOccurs="0" maxOccurs="unbounded"></xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="version" type="javaee:dewey-versionType" fixed="2.1" use="required"></xsd:attribute>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- JSP The body of the tag contains nested JSP
- syntax.
+ <xsd:complexType name="validatorType">
+ <xsd:sequence>
+ <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
+ <xsd:element name="validator-class" type="javaee:fully-qualified-classType"></xsd:element>
+ <xsd:element name="init-param" type="javaee:param-valueType" minOccurs="0" maxOccurs="unbounded"></xsd:element>
- empty The body must be empty
-
- scriptless The body accepts only template text, EL
- Expressions, and JSP action elements. No
- scripting elements are allowed.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:simpleContent>
- <xsd:restriction base="javaee:string">
- <xsd:enumeration value="tagdependent"/>
- <xsd:enumeration value="JSP"/>
- <xsd:enumeration value="empty"/>
- <xsd:enumeration value="scriptless"/>
- </xsd:restriction>
- </xsd:simpleContent>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="extensibleType" abstract="true">
- <xsd:annotation>
- <xsd:documentation>
-
- The extensibleType is an abstract base type that is used to
- define the type of extension-elements. Instance documents
- must substitute a known type to define the extension by
- using xsi:type attribute to define the actual type of
- extension-elements.
-
- </xsd:documentation>
- </xsd:annotation>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="functionType">
- <xsd:annotation>
- <xsd:documentation>
-
- The function element is used to provide information on each
- function in the tag library that is to be exposed to the EL.
-
- The function element may have several subelements defining:
-
- description Optional tag-specific information
-
- display-name A short name that is intended to be
- displayed by tools
-
- icon Optional icon element that can be used
- by tools
-
- name A unique name for this function
-
- function-class Provides the name of the Java class that
- implements the function
-
- function-signature Provides the signature, as in the Java
- Language Specification, of the Java
- method that is to be used to implement
- the function.
-
- example Optional informal description of an
- example of a use of this function
-
- function-extension Zero or more extensions that provide extra
- information about this function, for tool
- consumption
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:group ref="javaee:descriptionGroup"/>
- <xsd:element name="name"
- type="javaee:tld-canonical-nameType">
- <xsd:annotation>
- <xsd:documentation>
-
- A unique name for this function.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="function-class"
- type="javaee:fully-qualified-classType">
- <xsd:annotation>
- <xsd:documentation>
-
- Provides the fully-qualified class name of the Java
- class containing the static method that implements
- the function.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
- <xsd:element name="function-signature"
- type="javaee:string">
- <xsd:annotation>
- <xsd:documentation>
-
- Provides the signature, of the static Java method that is
- to be used to implement the function. The syntax of the
- function-signature element is as follows:
-
- FunctionSignature ::= ReturnType S MethodName S?
- '(' S? Parameters? S? ')'
-
- ReturnType ::= Type
-
- MethodName ::= Identifier
-
- Parameters ::= Parameter
- | ( Parameter S? ',' S? Parameters )
-
- Parameter ::= Type
-
- Where:
-
- * Type is a basic type or a fully qualified
- Java class name (including package name),
- as per the 'Type' production in the Java
- Language Specification, Second Edition,
- Chapter 18.
-
- * Identifier is a Java identifier, as per
- the 'Identifier' production in the Java
- Language Specification, Second
- Edition, Chapter 18.
-
- Example:
-
- java.lang.String nickName( java.lang.String, int )
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
- <xsd:element name="example"
- type="javaee:xsdStringType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- The example element contains an informal description
- of an example of the use of this function.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
- <xsd:element name="function-extension"
- type="javaee:tld-extensionType"
- minOccurs="0"
- maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation>
-
- Function extensions are for tool use only and must not
- affect the behavior of a container.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="tagFileType">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines an action in this tag library that is implemented
- as a .tag file.
-
- The tag-file element has two required subelements:
-
- description Optional tag-specific information
-
- display-name A short name that is intended to be
- displayed by tools
-
- icon Optional icon element that can be used
- by tools
-
- name The unique action name
-
- path Where to find the .tag file implementing this
- action, relative to the root of the web
- application or the root of the JAR file for a
- tag library packaged in a JAR. This must
- begin with /WEB-INF/tags if the .tag file
- resides in the WAR, or /META-INF/tags if the
- .tag file resides in a JAR.
-
- example Optional informal description of an
- example of a use of this tag
-
- tag-extension Zero or more extensions that provide extra
- information about this tag, for tool
- consumption
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:group ref="javaee:descriptionGroup"/>
- <xsd:element name="name"
- type="javaee:tld-canonical-nameType"/>
- <xsd:element name="path"
- type="javaee:pathType"/>
- <xsd:element name="example"
- type="javaee:xsdStringType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- The example element contains an informal description
- of an example of the use of a tag.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
- <xsd:element name="tag-extension"
- type="javaee:tld-extensionType"
- minOccurs="0"
- maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation>
-
- Tag extensions are for tool use only and must not affect
- the behavior of a container.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="tagType">
- <xsd:annotation>
- <xsd:documentation>
-
- The tag defines a unique tag in this tag library. It has one
- attribute, id.
-
- The tag element may have several subelements defining:
-
- description Optional tag-specific information
-
- display-name A short name that is intended to be
- displayed by tools
-
- icon Optional icon element that can be used
- by tools
-
- name The unique action name
-
- tag-class The tag handler class implementing
- javax.servlet.jsp.tagext.JspTag
-
- tei-class An optional subclass of
- javax.servlet.jsp.tagext.TagExtraInfo
-
- body-content The body content type
-
- variable Optional scripting variable information
-
- attribute All attributes of this action that are
- evaluated prior to invocation.
-
- dynamic-attributes Whether this tag supports additional
- attributes with dynamic names. If
- true, the tag-class must implement the
- javax.servlet.jsp.tagext.DynamicAttributes
- interface. Defaults to false.
-
- example Optional informal description of an
- example of a use of this tag
-
- tag-extension Zero or more extensions that provide extra
- information about this tag, for tool
- consumption
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:group ref="javaee:descriptionGroup"/>
- <xsd:element name="name"
- type="javaee:tld-canonical-nameType"/>
- <xsd:element name="tag-class"
- type="javaee:fully-qualified-classType">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines the subclass of javax.serlvet.jsp.tagext.JspTag
- that implements the request time semantics for
- this tag. (required)
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
- <xsd:element name="tei-class"
- type="javaee:fully-qualified-classType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines the subclass of javax.servlet.jsp.tagext.TagExtraInfo
- for this tag. (optional)
-
- If this is not given, the class is not consulted at
- translation time.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="body-content"
- type="javaee:body-contentType">
- <xsd:annotation>
- <xsd:documentation>
-
- Specifies the format for the body of this tag.
- The default in JSP 1.2 was "JSP" but because this
- is an invalid setting for simple tag handlers, there
- is no longer a default in JSP 2.0. A reasonable
- default for simple tag handlers is "scriptless" if
- the tag can have a body.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="variable"
- type="javaee:variableType"
- minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="attribute"
- type="javaee:tld-attributeType"
- minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="dynamic-attributes"
- type="javaee:generic-booleanType"
- minOccurs="0"/>
- <xsd:element name="example"
- type="javaee:xsdStringType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- The example element contains an informal description
- of an example of the use of a tag.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
- <xsd:element name="tag-extension"
- type="javaee:tld-extensionType"
- minOccurs="0"
- maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation>
-
- Tag extensions are for tool use only and must not affect
- the behavior of a container.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="tld-attributeType">
- <xsd:annotation>
- <xsd:documentation>
-
- The attribute element defines an attribute for the nesting
- tag. The attribute element may have several subelements
- defining:
-
- description a description of the attribute
-
- name the name of the attribute
-
- required whether the attribute is required or
- optional
-
- rtexprvalue whether the attribute is a runtime attribute
-
- type the type of the attributes
-
- fragment whether this attribute is a fragment
-
- deferred-value present if this attribute is to be parsed as a
- javax.el.ValueExpression
-
- deferred-method present if this attribute is to be parsed as a
- javax.el.MethodExpression
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:element name="description"
- type="javaee:descriptionType"
- minOccurs="0" maxOccurs="unbounded"/>
- <xsd:element name="name"
- type="javaee:java-identifierType"/>
- <xsd:element name="required"
- type="javaee:generic-booleanType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines if the nesting attribute is required or
- optional.
-
- If not present then the default is "false", i.e
- the attribute is optional.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:choice>
- <xsd:sequence>
- <xsd:sequence minOccurs="0">
- <xsd:element name="rtexprvalue"
- type="javaee:generic-booleanType">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines if the nesting attribute can have scriptlet
- expressions as a value, i.e the value of the
- attribute may be dynamically calculated at request
- time, as opposed to a static value determined at
- translation time.
- If not present then the default is "false", i.e the
- attribute has a static value
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="type"
- type="javaee:fully-qualified-classType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines the Java type of the attributes value.
- If this element is omitted, the expected type is
- assumed to be "java.lang.Object".
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
-
- <xsd:choice>
- <xsd:element name="deferred-value"
- type="javaee:tld-deferred-valueType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Present if the value for this attribute is to be
- passed to the tag handler as a
- javax.el.ValueExpression. This allows for deferred
- evaluation of EL expressions. An optional subelement
- will contain the expected type that the value will
- be coerced to after evaluation of the expression.
- The type defaults to Object if one is not provided.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="deferred-method"
- type="javaee:tld-deferred-methodType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Present if the value for this attribute is to be
- passed to the tag handler as a
- javax.el.MethodExpression. This allows for deferred
- evaluation of an EL expression that identifies a
- method to be invoked on an Object. An optional
- subelement will contain the expected method
- signature. The signature defaults to "void method()"
- if one is not provided.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:choice>
</xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
- <xsd:element name="fragment"
- type="javaee:generic-booleanType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
+ <xsd:complexType name="variable-scopeType">
+ <xsd:simpleContent>
- "true" if this attribute is of type
- javax.jsp.tagext.JspFragment, representing dynamic
- content that can be re-evaluated as many times
- as needed by the tag handler. If omitted or "false",
- the default is still type="java.lang.String"
+ <xsd:restriction base="javaee:string">
+ <xsd:enumeration value="NESTED" />
+ <xsd:enumeration value="AT_BEGIN" />
+ <xsd:enumeration value="AT_END" />
+ </xsd:restriction>
+ </xsd:simpleContent>
+ </xsd:complexType>
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
+ <xsd:complexType name="variableType">
+ <xsd:sequence>
+ <xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded" />
- </xsd:choice>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
+ <xsd:choice>
+ <xsd:element name="name-given" type="javaee:java-identifierType"></xsd:element>
-<!-- **************************************************** -->
+ <xsd:element name="name-from-attribute" type="javaee:java-identifierType"></xsd:element>
+ </xsd:choice>
+ <xsd:element name="variable-class" type="javaee:fully-qualified-classType" minOccurs="0"></xsd:element>
- <xsd:complexType name="tld-canonical-nameType">
-
- <xsd:annotation>
- <xsd:documentation>
-
- Defines the canonical name of a tag or attribute being
- defined.
-
- The name must conform to the lexical rules for an NMTOKEN.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:simpleContent>
- <xsd:restriction base="javaee:xsdNMTOKENType"/>
- </xsd:simpleContent>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="tld-deferred-methodType">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines information about how to provide the value for a
- tag handler attribute that accepts a javax.el.MethodExpression.
-
- The deferred-method element has one optional subelement:
-
- method-signature Provides the signature, as in the Java
- Language Specifies, that is expected for
- the method being identified by the
- expression.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:element name="method-signature"
- type="javaee:string"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Provides the expected signature of the method identified
- by the javax.el.MethodExpression.
-
- This disambiguates overloaded methods and ensures that
- the return value is of the expected type.
-
- The syntax of the method-signature element is identical
- to that of the function-signature element. See the
- documentation for function-signature for more details.
-
- The name of the method is for documentation purposes only
- and is ignored by the JSP container.
-
- Example:
-
- boolean validate(java.lang.String)
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
-
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="tld-deferred-valueType">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines information about how to provide the value for a
- tag handler attribute that accepts a javax.el.ValueExpression.
-
- The deferred-value element has one optional subelement:
-
- type the expected type of the attribute
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:element name="type"
- type="javaee:fully-qualified-classType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- The fully-qualified name of the Java type that is the
- expected type for this deferred expression. If this
- element is omitted, the expected type is assumed to be
- "java.lang.Object".
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
-
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="tld-extensionType">
- <xsd:annotation>
- <xsd:documentation>
-
- The tld-extensionType is used to indicate
- extensions to a specific TLD element.
-
- It is used by elements to designate an extension block
- that is targeted to a specific extension designated by
- a set of extension elements that are declared by a
- namespace. The namespace identifies the extension to
- the tool that processes the extension.
-
- The type of the extension-element is abstract. Therefore,
- a concrete type must be specified by the TLD using
- xsi:type attribute for each extension-element.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:element name="extension-element"
- type="javaee:extensibleType"
- maxOccurs="unbounded"/>
- </xsd:sequence>
-
- <xsd:attribute name="namespace"
- use="required"
- type="xsd:anyURI"/>
- <xsd:attribute name="id" type="xsd:ID"/>
-
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="tldTaglibType">
- <xsd:annotation>
- <xsd:documentation>
-
- The taglib tag is the document root, it defines:
-
- description a simple string describing the "use" of this
- taglib, should be user discernable
-
- display-name the display-name element contains a
- short name that is intended to be displayed
- by tools
-
- icon optional icon that can be used by tools
-
- tlib-version the version of the tag library implementation
-
- short-name a simple default short name that could be
- used by a JSP authoring tool to create
- names with a mnemonic value; for example,
- the it may be used as the prefered prefix
- value in taglib directives
-
- uri a uri uniquely identifying this taglib
-
- validator optional TagLibraryValidator information
-
- listener optional event listener specification
-
- tag tags in this tag library
-
- tag-file tag files in this tag library
-
- function zero or more EL functions defined in this
- tag library
-
- taglib-extension zero or more extensions that provide extra
- information about this taglib, for tool
- consumption
-
- </xsd:documentation>
- </xsd:annotation>
- <xsd:sequence>
- <xsd:group ref="javaee:descriptionGroup"/>
- <xsd:element name="tlib-version"
- type="javaee:dewey-versionType">
- <xsd:annotation>
- <xsd:documentation>
-
- Describes this version (number) of the taglibrary.
- It is described as a dewey decimal.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
-
- <xsd:element name="short-name"
- type="javaee:tld-canonical-nameType">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines a simple default name that could be used by
- a JSP authoring tool to create names with a
- mnemonicvalue; for example, it may be used as the
- preferred prefix value in taglib directives. Do
- not use white space, and do not start with digits
- or underscore.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
- <xsd:element name="uri"
- type="javaee:xsdAnyURIType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines a public URI that uniquely identifies this
- version of the taglibrary. Leave it empty if it
- does not apply.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
- <xsd:element name="validator"
- type="javaee:validatorType"
- minOccurs="0">
- </xsd:element>
- <xsd:element name="listener"
- type="javaee:listenerType"
- minOccurs="0" maxOccurs="unbounded">
- </xsd:element>
- <xsd:element name="tag"
- type="javaee:tagType"
- minOccurs="0"
- maxOccurs="unbounded"/>
- <xsd:element name="tag-file"
- type="javaee:tagFileType"
- minOccurs="0"
- maxOccurs="unbounded"/>
- <xsd:element name="function"
- type="javaee:functionType"
- minOccurs="0"
- maxOccurs="unbounded"/>
- <xsd:element name="taglib-extension"
- type="javaee:tld-extensionType"
- minOccurs="0"
- maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation>
-
- Taglib extensions are for tool use only and must not
- affect the behavior of a container.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="version"
- type="javaee:dewey-versionType"
- fixed="2.1"
- use="required">
- <xsd:annotation>
- <xsd:documentation>
-
- Describes the JSP version (number) this taglibrary
- requires in order to function (dewey decimal)
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:attribute>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="validatorType">
- <xsd:annotation>
- <xsd:documentation>
-
- A validator that can be used to validate
- the conformance of a JSP page to using this tag library is
- defined by a validatorType.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:element name="description"
- type="javaee:descriptionType"
- minOccurs="0"
- maxOccurs="unbounded"/>
- <xsd:element name="validator-class"
- type="javaee:fully-qualified-classType">
- <xsd:annotation>
- <xsd:documentation>
-
- Defines the TagLibraryValidator class that can be used
- to validate the conformance of a JSP page to using this
- tag library.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="init-param"
- type="javaee:param-valueType"
- minOccurs="0" maxOccurs="unbounded">
- <xsd:annotation>
- <xsd:documentation>
-
- The init-param element contains a name/value pair as an
- initialization param.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
-
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="variable-scopeType">
- <xsd:annotation>
- <xsd:documentation>
-
- This type defines scope of the scripting variable. See
- TagExtraInfo for details. The allowed values are,
- "NESTED", "AT_BEGIN" and "AT_END".
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:simpleContent>
- <xsd:restriction base="javaee:string">
- <xsd:enumeration value="NESTED"/>
- <xsd:enumeration value="AT_BEGIN"/>
- <xsd:enumeration value="AT_END"/>
- </xsd:restriction>
- </xsd:simpleContent>
- </xsd:complexType>
-
-<!-- **************************************************** -->
-
- <xsd:complexType name="variableType">
- <xsd:annotation>
- <xsd:documentation>
-
- The variableType provides information on the scripting
- variables defined by using this tag. It is a (translation
- time) error for a tag that has one or more variable
- subelements to have a TagExtraInfo class that returns a
- non-null value from a call to getVariableInfo().
-
- The subelements of variableType are of the form:
-
- description Optional description of this
- variable
-
- name-given The variable name as a constant
-
- name-from-attribute The name of an attribute whose
- (translation time) value will
- give the name of the
- variable. One of name-given or
- name-from-attribute is required.
-
- variable-class Name of the class of the variable.
- java.lang.String is default.
-
- declare Whether the variable is declared
- or not. True is the default.
-
- scope The scope of the scripting varaible
- defined. NESTED is default.
-
- </xsd:documentation>
- </xsd:annotation>
-
- <xsd:sequence>
- <xsd:element name="description"
- type="javaee:descriptionType"
- minOccurs="0" maxOccurs="unbounded"/>
- <xsd:choice>
- <xsd:element name="name-given"
- type="javaee:java-identifierType">
- <xsd:annotation>
- <xsd:documentation>
-
- The name for the scripting variable.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
-
- <xsd:element name="name-from-attribute"
- type="javaee:java-identifierType">
- <xsd:annotation>
- <xsd:documentation>
-
- The name of an attribute whose
- (translation-time) value will give the name of
- the variable.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:choice>
- <xsd:element name="variable-class"
- type="javaee:fully-qualified-classType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- The optional name of the class for the scripting
- variable. The default is java.lang.String.
-
- </xsd:documentation>
- </xsd:annotation>
-
- </xsd:element>
-
- <xsd:element name="declare"
- type="javaee:generic-booleanType"
- minOccurs="0">
-
- <xsd:annotation>
- <xsd:documentation>
-
- Whether the scripting variable is to be defined
- or not. See TagExtraInfo for details. This
- element is optional and "true" is the default.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="scope"
- type="javaee:variable-scopeType"
- minOccurs="0">
- <xsd:annotation>
- <xsd:documentation>
-
- The element is optional and "NESTED" is the default.
-
- </xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="id" type="xsd:ID"/>
- </xsd:complexType>
-
+ <xsd:element name="declare" type="javaee:generic-booleanType" minOccurs="0"></xsd:element>
+ <xsd:element name="scope" type="javaee:variable-scopeType" minOccurs="0"></xsd:element>
+ </xsd:sequence>
+ <xsd:attribute name="id" type="xsd:ID" />
+ </xsd:complexType>
</xsd:schema>
-
Modified: trunk/java/org/apache/jasper/xmlparser/ParserUtils.java
===================================================================
--- trunk/java/org/apache/jasper/xmlparser/ParserUtils.java 2007-11-13 18:31:48 UTC (rev 345)
+++ trunk/java/org/apache/jasper/xmlparser/ParserUtils.java 2007-11-14 14:55:35 UTC (rev 346)
@@ -191,9 +191,6 @@
class MyEntityResolver implements EntityResolver {
- // Logger
- private Logger log = Logger.getLogger(MyEntityResolver.class);
-
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException {
for (int i = 0; i < Constants.CACHED_DTD_PUBLIC_IDS.length; i++) {
@@ -210,6 +207,7 @@
return isrc;
}
}
+ Logger log = Logger.getLogger(MyEntityResolver.class);
if (log.isDebugEnabled())
log.debug("Resolve entity failed" + publicId + " " + systemId);
log.error(Localizer.getMessage("jsp.error.parse.xml.invalidPublicId",
@@ -220,10 +218,8 @@
class MyErrorHandler implements ErrorHandler {
- // Logger
- private Logger log = Logger.getLogger(MyErrorHandler.class);
-
public void warning(SAXParseException ex) throws SAXException {
+ Logger log = Logger.getLogger(MyErrorHandler.class);
if (log.isDebugEnabled())
log.debug("ParserUtils: warning ", ex);
// We ignore warnings
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2007-11-13 18:31:48 UTC (rev 345)
+++ trunk/webapps/docs/changelog.xml 2007-11-14 14:55:35 UTC (rev 346)
@@ -22,6 +22,9 @@
Swicth to JBoss logging from Apache Commons Logging. Standalone JBoss Web uses
a special purpose version defaulting to use java.util.logging. (remm)
</update>
+ <fix>
+ Fix licensing problems with two xsd files. (remm)
+ </fix>
</changelog>
</subsection>
<subsection name="Catalina">
@@ -78,6 +81,13 @@
</update>
</changelog>
</subsection>
+ <subsection name="Jasper">
+ <changelog>
+ <fix>
+ Remove log field for XML handlers. (remm)
+ </fix>
+ </changelog>
+ </subsection>
</section>
<section name="Tomcat 6.0.15 (remm)">
17 years, 1 month
JBossWeb SVN: r345 - tags.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2007-11-13 13:31:48 -0500 (Tue, 13 Nov 2007)
New Revision: 345
Added:
tags/JBOSSWEB_2_0_0_GA_CP04/
Log:
- Fix JBPAPP-423.
Copied: tags/JBOSSWEB_2_0_0_GA_CP04 (from rev 344, branches/JBOSSWEB_2_0_0_GA_CP)
17 years, 1 month
JBossWeb SVN: r344 - branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/net.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2007-11-13 13:27:45 -0500 (Tue, 13 Nov 2007)
New Revision: 344
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/net/JIoEndpoint.java
Log:
- Fix unwanted commit which introduced debug information.
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/net/JIoEndpoint.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/net/JIoEndpoint.java 2007-11-11 16:39:12 UTC (rev 343)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/net/JIoEndpoint.java 2007-11-13 18:27:45 UTC (rev 344)
@@ -440,12 +440,8 @@
// Wait for the next socket to be assigned
Socket socket = await();
- // JFC
- log.error("JIoEndpoint.run: " + socket);
if (socket == null)
continue;
- log.error("JIoEndpoint.run: " + socket.isClosed() + " " + socket.isInputShutdown()
- + " " + socket.isOutputShutdown());
// Process the request from this socket
if (!setSocketOptions(socket) || !handler.process(socket)) {
17 years, 1 month
JBossWeb SVN: r343 - trunk/java/org/apache/tomcat/util/http.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2007-11-11 11:39:12 -0500 (Sun, 11 Nov 2007)
New Revision: 343
Modified:
trunk/java/org/apache/tomcat/util/http/ServerCookie.java
Log:
Modified: trunk/java/org/apache/tomcat/util/http/ServerCookie.java
===================================================================
--- trunk/java/org/apache/tomcat/util/http/ServerCookie.java 2007-11-09 17:38:42 UTC (rev 342)
+++ trunk/java/org/apache/tomcat/util/http/ServerCookie.java 2007-11-11 16:39:12 UTC (rev 343)
@@ -38,9 +38,6 @@
public class ServerCookie implements Serializable {
- private static org.jboss.logging.Logger log=
- org.jboss.logging.Logger.getLogger(ServerCookie.class );
-
// Version 0 (Netscape) attributes
private MessageBytes name=MessageBytes.newInstance();
private MessageBytes value=MessageBytes.newInstance();
@@ -124,11 +121,6 @@
// -------------------- utils --------------------
- public static void log(String s ) {
- if (log.isDebugEnabled())
- log.debug("ServerCookie: " + s);
- }
-
public String toString() {
return "Cookie " + getName() + "=" + getValue() + " ; "
+ getVersion() + " " + getPath() + " " + getDomain();
17 years, 1 month
JBossWeb SVN: r342 - tags.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2007-11-09 12:38:42 -0500 (Fri, 09 Nov 2007)
New Revision: 342
Added:
tags/JBOSSWEB_2_0_0_GA_CP03/
Log:
- JBoss Web 2.0.0 GA CP 03.
Copied: tags/JBOSSWEB_2_0_0_GA_CP03 (from rev 341, branches/JBOSSWEB_2_0_0_GA_CP)
17 years, 1 month
JBossWeb SVN: r341 - trunk/webapps/docs.
by jbossweb-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2007-11-08 09:49:11 -0500 (Thu, 08 Nov 2007)
New Revision: 341
Modified:
trunk/webapps/docs/changelog.xml
Log:
Add the entries corresponding to the corrections in the cookies logic.
Modified: trunk/webapps/docs/changelog.xml
===================================================================
--- trunk/webapps/docs/changelog.xml 2007-11-08 13:47:45 UTC (rev 340)
+++ trunk/webapps/docs/changelog.xml 2007-11-08 14:49:11 UTC (rev 341)
@@ -26,6 +26,12 @@
</subsection>
<subsection name="Catalina">
<changelog>
+ <fix>
+ Prevent cookie logic to escape quotes where the value is already a quoted-string. (jfclere)
+ </fix>
+ <fix>
+ Fix version handling in cookies. (jfclere)
+ </fix>
<update>
Remove Tomcat standalone session clustering. (remm)
</update>
17 years, 1 month
JBossWeb SVN: r340 - trunk/java/org/apache/tomcat/util/http.
by jbossweb-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2007-11-08 08:47:45 -0500 (Thu, 08 Nov 2007)
New Revision: 340
Modified:
trunk/java/org/apache/tomcat/util/http/Cookies.java
trunk/java/org/apache/tomcat/util/http/ServerCookie.java
Log:
Arrange the cookies test (failed TCK).
Modified: trunk/java/org/apache/tomcat/util/http/Cookies.java
===================================================================
--- trunk/java/org/apache/tomcat/util/http/Cookies.java 2007-11-06 17:58:14 UTC (rev 339)
+++ trunk/java/org/apache/tomcat/util/http/Cookies.java 2007-11-08 13:47:45 UTC (rev 340)
@@ -487,7 +487,7 @@
if (equals( "Version", bytes, nameStart, nameEnd) &&
sc == null) {
// Set version
- if( bytes[valueStart] =='1' && valueEnd == valueStart) {
+ if( bytes[valueStart] =='1' && valueEnd == (valueStart+1)) {
version=1;
} else {
// unknown version (Versioning is not very strict)
Modified: trunk/java/org/apache/tomcat/util/http/ServerCookie.java
===================================================================
--- trunk/java/org/apache/tomcat/util/http/ServerCookie.java 2007-11-06 17:58:14 UTC (rev 339)
+++ trunk/java/org/apache/tomcat/util/http/ServerCookie.java 2007-11-08 13:47:45 UTC (rev 340)
@@ -305,11 +305,28 @@
if (isToken(value)) {
buf.append(value);
} else {
- buf.append('"');
- buf.append(escapeDoubleQuotes(value));
- buf.append('"');
+ if (alreadyQuoted(value))
+ buf.append(value);
+ else {
+ buf.append('"');
+ buf.append(escapeDoubleQuotes(value));
+ buf.append('"');
+ }
}
}
+ public static boolean alreadyQuoted (String value) {
+ if (value.startsWith("\"") && value.endsWith("\"")) {
+ int len = value.length();
+ for (int i = 1; i < len-1; i++) {
+ char c = value.charAt(i);
+ // Make sure there aren't unescaped controls in value.
+ if (c < 0x20 || c >= 0x7f)
+ return false; // We will escape the " and controls.
+ }
+ return true;
+ }
+ return false;
+ }
/**
* Quotes values using rules that vary depending on Cookie version.
@@ -323,9 +340,13 @@
if (version == 0 && isToken(value) || version == 1 && isToken2(value)) {
buf.append(value);
} else {
- buf.append('"');
- buf.append(escapeDoubleQuotes(value));
- buf.append('"');
+ if (alreadyQuoted(value))
+ buf.append(value);
+ else {
+ buf.append('"');
+ buf.append(escapeDoubleQuotes(value));
+ buf.append('"');
+ }
}
}
17 years, 1 month
JBossWeb SVN: r339 - in branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache: catalina/session and 6 other directories.
by jbossweb-commits@lists.jboss.org
Author: remy.maucherat(a)jboss.com
Date: 2007-11-06 12:58:14 -0500 (Tue, 06 Nov 2007)
New Revision: 339
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/ContainerBase.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/NamingContextListener.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/StandardContext.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/session/ManagerBase.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/EmbeddedServletOptions.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/JspCompilationContext.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/Compiler.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspConfig.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspReader.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspRuntimeContext.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/SmapUtil.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/TagLibraryInfoImpl.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/TldLocationsCache.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/runtime/JspFactoryImpl.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/servlet/JspServlet.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/ParserUtils.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/UCSReader.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/UTF8Reader.java
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/digester/Digester.java
Log:
- Apply Scott's hack to avoid commons-logging clashes (ASPATCH-234).
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/ContainerBase.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/ContainerBase.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/ContainerBase.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -183,12 +183,6 @@
/**
- * The Logger implementation with which this Container is associated.
- */
- protected Log logger = null;
-
-
- /**
* Associated logger name.
*/
protected String logName = null;
@@ -377,10 +371,7 @@
*/
public Log getLogger() {
- if (logger != null)
- return (logger);
- logger = LogFactory.getLog(logName());
- return (logger);
+ return (log);
}
@@ -995,10 +986,6 @@
// Start our subordinate components, if any
if ((loader != null) && (loader instanceof Lifecycle))
((Lifecycle) loader).start();
- logger = null;
- getLogger();
- if ((logger != null) && (logger instanceof Lifecycle))
- ((Lifecycle) logger).start();
if ((manager != null) && (manager instanceof Lifecycle))
((Lifecycle) manager).start();
if ((cluster != null) && (cluster instanceof Lifecycle))
@@ -1086,9 +1073,6 @@
if ((manager != null) && (manager instanceof Lifecycle)) {
((Lifecycle) manager).stop();
}
- if ((logger != null) && (logger instanceof Lifecycle)) {
- ((Lifecycle) logger).stop();
- }
if ((loader != null) && (loader instanceof Lifecycle)) {
((Lifecycle) loader).stop();
}
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/NamingContextListener.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/NamingContextListener.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/NamingContextListener.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -89,9 +89,6 @@
// ----------------------------------------------------- Instance Variables
- protected Log logger = log;
-
-
/**
* Name of the associated naming context.
*/
@@ -206,7 +203,6 @@
if (container instanceof Context) {
namingResources = ((Context) container).getNamingResources();
- logger = log;
} else if (container instanceof Server) {
namingResources = ((Server) container).getGlobalNamingResources();
} else {
@@ -236,7 +232,7 @@
try {
createNamingContext();
} catch (NamingException e) {
- logger.error
+ log.error
(sm.getString("naming.namingContextCreationFailed", e));
}
@@ -249,7 +245,7 @@
(container, container,
((Container) container).getLoader().getClassLoader());
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
}
@@ -262,7 +258,7 @@
(container, container,
this.getClass().getClassLoader());
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
if (container instanceof StandardServer) {
((StandardServer) container).setGlobalNamingContext
@@ -677,7 +673,7 @@
// Ignore because UserTransaction was obviously
// added via ResourceLink
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
}
@@ -687,7 +683,7 @@
compCtx.bind("Resources",
((Container) container).getResources());
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
}
@@ -760,7 +756,7 @@
createSubcontexts(envCtx, ejb.getName());
envCtx.bind(ejb.getName(), ref);
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
}
@@ -827,23 +823,23 @@
}
}
} else {
- logger.error(sm.getString("naming.invalidEnvEntryType", env.getName()));
+ log.error(sm.getString("naming.invalidEnvEntryType", env.getName()));
}
} catch (NumberFormatException e) {
- logger.error(sm.getString("naming.invalidEnvEntryValue", env.getName()));
+ log.error(sm.getString("naming.invalidEnvEntryValue", env.getName()));
} catch (IllegalArgumentException e) {
- logger.error(sm.getString("naming.invalidEnvEntryValue", env.getName()));
+ log.error(sm.getString("naming.invalidEnvEntryValue", env.getName()));
}
// Binding the object to the appropriate name
if (value != null) {
try {
- if (logger.isDebugEnabled())
- logger.debug(" Adding environment entry " + env.getName());
+ if (log.isDebugEnabled())
+ log.debug(" Adding environment entry " + env.getName());
createSubcontexts(envCtx, env.getName());
envCtx.bind(env.getName(), value);
} catch (NamingException e) {
- logger.error(sm.getString("naming.invalidEnvEntryValue", e));
+ log.error(sm.getString("naming.invalidEnvEntryValue", e));
}
}
@@ -887,10 +883,10 @@
wsdlURL = ((Context) container).
getServletContext().
getResource("/" + service.getWsdlfile());
- logger.debug(" Changing service ref wsdl file for /"
+ log.debug(" Changing service ref wsdl file for /"
+ service.getWsdlfile());
} catch (MalformedURLException e) {
- logger.error(sm.getString("naming.wsdlFailed", e));
+ log.error(sm.getString("naming.wsdlFailed", e));
}
}
if (wsdlURL == null)
@@ -921,10 +917,10 @@
jaxrpcURL = ((Context) container).
getServletContext().
getResource("/" + service.getJaxrpcmappingfile());
- logger.debug(" Changing service ref jaxrpc file for /"
+ log.debug(" Changing service ref jaxrpc file for /"
+ service.getJaxrpcmappingfile());
} catch (MalformedURLException e) {
- logger.error(sm.getString("naming.wsdlFailed", e));
+ log.error(sm.getString("naming.wsdlFailed", e));
}
}
if (jaxrpcURL == null)
@@ -977,14 +973,14 @@
}
try {
- if (logger.isDebugEnabled()) {
- logger.debug(" Adding service ref "
+ if (log.isDebugEnabled()) {
+ log.debug(" Adding service ref "
+ service.getName() + " " + ref);
}
createSubcontexts(envCtx, service.getName());
envCtx.bind(service.getName(), ref);
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
}
@@ -1008,14 +1004,14 @@
ref.add(refAddr);
}
try {
- if (logger.isDebugEnabled()) {
- logger.debug(" Adding resource ref "
+ if (log.isDebugEnabled()) {
+ log.debug(" Adding resource ref "
+ resource.getName() + " " + ref);
}
createSubcontexts(envCtx, resource.getName());
envCtx.bind(resource.getName(), ref);
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
if ("javax.sql.DataSource".equals(ref.getClassName())) {
@@ -1025,7 +1021,7 @@
Registry.getRegistry(null, null).registerComponent(actualResource, on, null);
objectNames.put(resource.getName(), on);
} catch (Exception e) {
- logger.warn(sm.getString("naming.jmxRegistrationFailed", e));
+ log.warn(sm.getString("naming.jmxRegistrationFailed", e));
}
}
@@ -1048,12 +1044,12 @@
ref.add(refAddr);
}
try {
- if (logger.isDebugEnabled())
+ if (log.isDebugEnabled())
log.debug(" Adding resource env ref " + resourceEnvRef.getName());
createSubcontexts(envCtx, resourceEnvRef.getName());
envCtx.bind(resourceEnvRef.getName(), ref);
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
}
@@ -1071,12 +1067,12 @@
"UserTransaction".equals(resourceLink.getName())
? compCtx : envCtx;
try {
- if (logger.isDebugEnabled())
+ if (log.isDebugEnabled())
log.debug(" Adding resource link " + resourceLink.getName());
createSubcontexts(envCtx, resourceLink.getName());
ctx.bind(resourceLink.getName(), ref);
} catch (NamingException e) {
- logger.error(sm.getString("naming.bindFailed", e));
+ log.error(sm.getString("naming.bindFailed", e));
}
}
@@ -1090,7 +1086,7 @@
try {
envCtx.unbind(name);
} catch (NamingException e) {
- logger.error(sm.getString("naming.unbindFailed", e));
+ log.error(sm.getString("naming.unbindFailed", e));
}
}
@@ -1104,7 +1100,7 @@
try {
envCtx.unbind(name);
} catch (NamingException e) {
- logger.error(sm.getString("naming.unbindFailed", e));
+ log.error(sm.getString("naming.unbindFailed", e));
}
}
@@ -1118,7 +1114,7 @@
try {
envCtx.unbind(name);
} catch (NamingException e) {
- logger.error(sm.getString("naming.unbindFailed", e));
+ log.error(sm.getString("naming.unbindFailed", e));
}
}
@@ -1132,7 +1128,7 @@
try {
envCtx.unbind(name);
} catch (NamingException e) {
- logger.error(sm.getString("naming.unbindFailed", e));
+ log.error(sm.getString("naming.unbindFailed", e));
}
}
@@ -1146,7 +1142,7 @@
try {
envCtx.unbind(name);
} catch (NamingException e) {
- logger.error(sm.getString("naming.unbindFailed", e));
+ log.error(sm.getString("naming.unbindFailed", e));
}
ObjectName on = (ObjectName) objectNames.get(name);
@@ -1165,7 +1161,7 @@
try {
envCtx.unbind(name);
} catch (NamingException e) {
- logger.error(sm.getString("naming.unbindFailed", e));
+ log.error(sm.getString("naming.unbindFailed", e));
}
}
@@ -1179,7 +1175,7 @@
try {
envCtx.unbind(name);
} catch (NamingException e) {
- logger.error(sm.getString("naming.unbindFailed", e));
+ log.error(sm.getString("naming.unbindFailed", e));
}
}
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/StandardContext.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/StandardContext.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/core/StandardContext.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -4225,13 +4225,6 @@
// Binding thread
oldCCL = bindThread();
-
- // Initialize logger again. Other components might have used it too early,
- // so it should be reset.
- logger = null;
- getLogger();
- if ((logger != null) && (logger instanceof Lifecycle))
- ((Lifecycle) logger).start();
if ((cluster != null) && (cluster instanceof Lifecycle))
((Lifecycle) cluster).start();
@@ -4552,9 +4545,6 @@
if ((cluster != null) && (cluster instanceof Lifecycle)) {
((Lifecycle) cluster).stop();
}
- if ((logger != null) && (logger instanceof Lifecycle)) {
- ((Lifecycle) logger).stop();
- }
if ((loader != null) && (loader instanceof Lifecycle)) {
((Lifecycle) loader).stop();
}
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/session/ManagerBase.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/session/ManagerBase.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/session/ManagerBase.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -65,7 +65,7 @@
*/
public abstract class ManagerBase implements Manager, MBeanRegistration {
- protected Log log = LogFactory.getLog(ManagerBase.class);
+ protected static Log log = LogFactory.getLog(ManagerBase.class);
// ----------------------------------------------------- Instance Variables
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/EmbeddedServletOptions.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/EmbeddedServletOptions.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/EmbeddedServletOptions.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -41,7 +41,7 @@
public final class EmbeddedServletOptions implements Options {
// Logger
- private Log log = LogFactory.getLog(EmbeddedServletOptions.class);
+ private static Log log = LogFactory.getLog(EmbeddedServletOptions.class);
private Properties settings = new Properties();
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/JspCompilationContext.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/JspCompilationContext.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/JspCompilationContext.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -53,7 +53,7 @@
*/
public class JspCompilationContext {
- protected org.apache.commons.logging.Log log =
+ protected static org.apache.commons.logging.Log log =
org.apache.commons.logging.LogFactory.getLog(JspCompilationContext.class);
protected Map<String, URL> tagFileJarUrls;
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/Compiler.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/Compiler.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/Compiler.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -45,7 +45,7 @@
*/
public abstract class Compiler {
- protected org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory
+ protected static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory
.getLog(Compiler.class);
// ----------------------------------------------------- Instance Variables
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspConfig.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspConfig.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspConfig.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -44,7 +44,7 @@
private static final String WEB_XML = "/WEB-INF/web.xml";
// Logger
- private Log log = LogFactory.getLog(JspConfig.class);
+ private static Log log = LogFactory.getLog(JspConfig.class);
private Vector jspProperties = null;
private ServletContext ctxt;
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspReader.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspReader.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspReader.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -53,7 +53,7 @@
/**
* Logger.
*/
- private Log log = LogFactory.getLog(JspReader.class);
+ private static Log log = LogFactory.getLog(JspReader.class);
/**
* The current spot in the file.
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspRuntimeContext.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspRuntimeContext.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/JspRuntimeContext.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -58,7 +58,7 @@
public final class JspRuntimeContext {
// Logger
- private Log log = LogFactory.getLog(JspRuntimeContext.class);
+ private static Log log = LogFactory.getLog(JspRuntimeContext.class);
/*
* Counts how many times the webapp's JSPs have been reloaded.
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/SmapUtil.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/SmapUtil.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/SmapUtil.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -44,7 +44,7 @@
*/
public class SmapUtil {
- private org.apache.commons.logging.Log log=
+ private static org.apache.commons.logging.Log log=
org.apache.commons.logging.LogFactory.getLog( SmapUtil.class );
//*********************************************************************
@@ -189,7 +189,7 @@
// Installation logic (from Robert Field, JSR-045 spec lead)
private static class SDEInstaller {
- private org.apache.commons.logging.Log log=
+ private static org.apache.commons.logging.Log log=
org.apache.commons.logging.LogFactory.getLog( SDEInstaller.class );
static final String nameSDE = "SourceDebugExtension";
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/TagLibraryInfoImpl.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/TagLibraryInfoImpl.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/TagLibraryInfoImpl.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -64,7 +64,7 @@
class TagLibraryInfoImpl extends TagLibraryInfo implements TagConstants {
// Logger
- private Log log = LogFactory.getLog(TagLibraryInfoImpl.class);
+ private static Log log = LogFactory.getLog(TagLibraryInfoImpl.class);
private JspCompilationContext ctxt;
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/TldLocationsCache.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/TldLocationsCache.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/compiler/TldLocationsCache.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -78,7 +78,7 @@
public class TldLocationsCache {
// Logger
- private Log log = LogFactory.getLog(TldLocationsCache.class);
+ private static Log log = LogFactory.getLog(TldLocationsCache.class);
/**
* The types of URI one may specify for a tag library
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/runtime/JspFactoryImpl.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/runtime/JspFactoryImpl.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/runtime/JspFactoryImpl.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -40,7 +40,7 @@
public class JspFactoryImpl extends JspFactory {
// Logger
- private Log log = LogFactory.getLog(JspFactoryImpl.class);
+ private static Log log = LogFactory.getLog(JspFactoryImpl.class);
private static final String SPEC_VERSION = "2.1";
private static final boolean USE_POOL =
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/servlet/JspServlet.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/servlet/JspServlet.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/servlet/JspServlet.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -57,7 +57,7 @@
public class JspServlet extends HttpServlet implements PeriodicEventListener {
// Logger
- private Log log = LogFactory.getLog(JspServlet.class);
+ private static Log log = LogFactory.getLog(JspServlet.class);
private ServletContext context;
private ServletConfig config;
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/ParserUtils.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/ParserUtils.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/ParserUtils.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -192,7 +192,7 @@
class MyEntityResolver implements EntityResolver {
// Logger
- private Log log = LogFactory.getLog(MyEntityResolver.class);
+ private static Log log = LogFactory.getLog(MyEntityResolver.class);
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException {
@@ -221,7 +221,7 @@
class MyErrorHandler implements ErrorHandler {
// Logger
- private Log log = LogFactory.getLog(MyErrorHandler.class);
+ private static Log log = LogFactory.getLog(MyErrorHandler.class);
public void warning(SAXParseException ex) throws SAXException {
if (log.isDebugEnabled())
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/UCSReader.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/UCSReader.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/UCSReader.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -31,7 +31,7 @@
*/
public class UCSReader extends Reader {
- private org.apache.commons.logging.Log log=
+ private static org.apache.commons.logging.Log log=
org.apache.commons.logging.LogFactory.getLog( UCSReader.class );
//
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/UTF8Reader.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/UTF8Reader.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/jasper/xmlparser/UTF8Reader.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -31,7 +31,7 @@
public class UTF8Reader
extends Reader {
- private org.apache.commons.logging.Log log=
+ private static org.apache.commons.logging.Log log=
org.apache.commons.logging.LogFactory.getLog( UTF8Reader.class );
//
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/digester/Digester.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/digester/Digester.java 2007-11-05 17:59:04 UTC (rev 338)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/tomcat/util/digester/Digester.java 2007-11-06 17:58:14 UTC (rev 339)
@@ -315,14 +315,14 @@
/**
* The Log to which most logging calls will be made.
*/
- protected Log log =
+ protected static Log log =
LogFactory.getLog("org.apache.commons.digester.Digester");
/**
* The Log to which all SAX event related logging calls will be made.
*/
- protected Log saxLog =
+ protected static Log saxLog =
LogFactory.getLog("org.apache.commons.digester.Digester.sax");
@@ -2339,8 +2339,6 @@
params.clear();
publicId = null;
stack.clear();
- log = null;
- saxLog = null;
configured = false;
}
@@ -2555,9 +2553,6 @@
return;
}
- log = LogFactory.getLog("org.apache.commons.digester.Digester");
- saxLog = LogFactory.getLog("org.apache.commons.digester.Digester.sax");
-
// Perform lazy configuration as needed
initialize(); // call hook method for subclasses that want to be initialized once only
// Nothing else required by default
17 years, 1 month
JBossWeb SVN: r338 - tags.
by jbossweb-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2007-11-05 12:59:04 -0500 (Mon, 05 Nov 2007)
New Revision: 338
Added:
tags/JBOSSWEB_2_0_0_GA_CP02/
Log:
JBPAPP-363, JBPAPP-366 and JBAS-4897.
Copied: tags/JBOSSWEB_2_0_0_GA_CP02 (from rev 337, branches/JBOSSWEB_2_0_0_GA_CP)
17 years, 1 month
JBossWeb SVN: r337 - branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/servlets.
by jbossweb-commits@lists.jboss.org
Author: jfrederic.clere(a)jboss.com
Date: 2007-11-05 08:43:25 -0500 (Mon, 05 Nov 2007)
New Revision: 337
Modified:
branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/servlets/WebdavServlet.java
Log:
Add the expand and a dummy entity resolver (some XML parsers do not respect the expand flag).
Modified: branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/servlets/WebdavServlet.java
===================================================================
--- branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/servlets/WebdavServlet.java 2007-11-05 10:37:12 UTC (rev 336)
+++ branches/JBOSSWEB_2_0_0_GA_CP/src/share/classes/org/apache/catalina/servlets/WebdavServlet.java 2007-11-05 13:43:25 UTC (rev 337)
@@ -20,6 +20,7 @@
import java.io.IOException;
+import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.security.MessageDigest;
@@ -56,6 +57,7 @@
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
+import org.xml.sax.EntityResolver;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
@@ -240,7 +242,15 @@
try {
documentBuilderFactory = DocumentBuilderFactory.newInstance();
documentBuilderFactory.setNamespaceAware(true);
+ documentBuilderFactory.setExpandEntityReferences(false);
documentBuilder = documentBuilderFactory.newDocumentBuilder();
+ documentBuilder.setEntityResolver
+ (new EntityResolver() {
+ public InputSource resolveEntity(String publicId, String systemId)
+ throws SAXException, IOException {
+ return new InputSource(new StringReader(""));
+ }
+ });
} catch(ParserConfigurationException e) {
throw new ServletException
(sm.getString("webdavservlet.jaxpfailed"));
17 years, 1 month