You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2005/02/12 19:24:57 UTC
DO NOT REPLY [Bug 33538] New: -
TagLibraryInfoImpl does not process elements correctly from JSP 2.0 TLDs
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33538>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33538
Summary: TagLibraryInfoImpl does not process <tag-file> elements
correctly from JSP 2.0 TLDs
Product: Tomcat 5
Version: 5.0.28
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: akolkar@us.ibm.com
The XML schema for JSP 2.0 TLDs [ http://java.sun.com/xml/ns/j2ee/web-
jsptaglibrary_2_0.xsd ] specifies that xsd:complexType tagFileType may have
any number of example or tag-extension child elements.
Jasper2 does not ignore these elements while processing the TLDs (as it
should) and incorrectly logs warnings.
Patch:
Index: TagLibraryInfoImpl.java
===================================================================
RCS file: /usr/local/cvsroot/apache/jakarta-tomcat-5.0.28-src/jakarta-tomcat-
jasper/jasper2/src/share/org/apache/jasper/compiler/TagLibraryInfoImpl.java,v
retrieving revision 1.1
diff -c -r1.1 TagLibraryInfoImpl.java
*** TagLibraryInfoImpl.java 12 Feb 2005 17:51:54 -0000 1.1
--- TagLibraryInfoImpl.java 12 Feb 2005 17:57:25 -0000
***************
*** 473,478 ****
--- 473,482 ----
name = child.getBody();
} else if ("path".equals(tname)) {
path = child.getBody();
+ } else if ("example".equals(tname)) {
+ // Ignore <example> element
+ } else if ("tag-extension".equals(tname)) {
+ // Ignore <tag-extension> element
} else {
if (log.isWarnEnabled()) {
log.warn(Localizer.getMessage(
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org