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: apei...@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
[r...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to