tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48100] New: jsp:directive.taglib parse error
Date Mon, 02 Nov 2009 07:42:31 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48100

           Summary: jsp:directive.taglib parse error
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: apeidou@gmail.com


JSP 2.1 Special taglib directive: <jsp:directive.taglib />
Tomcat 6.0.x's behavor is "jsp:taglib".

Fix:
(base on tomcat 6.0.20)
org/apache/jasper/compiler/TagConstants.java

line 87-88:
public static final String TAGLIB_DIRECTIVE_ACTION = "taglib";
public static final String JSP_TAGLIB_DIRECTIVE_ACTION = "jsp:taglib";
should be:
public static final String TAGLIB_DIRECTIVE_ACTION = "directive.taglib";
public static final String JSP_TAGLIB_DIRECTIVE_ACTION =
"jsp:directive.taglib";

org/apache/jasper/compiler/Parser.java
[root@localhost tomcat]# diff Parser.java.fix Parser.java
551,557d550
<         } else if (reader.matches("taglib")) {
<             eTag = "jsp:directive.taglib";
<             if (isTagFile) {
<                 err.jspError(reader.mark(), "jsp.error.directive.istagfile",
<                         "&lt;" + eTag);
<             }
<             parseTaglibDirective(parent);

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message