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: [email protected]
ReportedBy: [email protected]
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",
< "<" + 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: [email protected]
For additional commands, e-mail: [email protected]