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/04/16 05:44:46 UTC
DO NOT REPLY [Bug 34480] New: -
Parser chokes on tags within HTML comment block
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=34480>.
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=34480
Summary: Parser chokes on tags within HTML comment block
Product: Tomcat 5
Version: 5.0.28
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: terri.paik@webmethods.com
The following valid JSP loaded fine in Tomcat 4, but it does not load in Tomcat
5. The parser is complaining about the unbalanced end tag </mycomp:foo> which
is within an HTML comment. This is incorrect; a tag inside a comment block
should be ignored.
<%@ page language="java" contentType="text/html" %>
<%@ taglib uri="http://webm-taglib.tld" prefix="mycomp" %>
<html>
<P>This is a plain JSP that serves up HTML.
<!-- 'foo' tag
Use the 'foo' tag to make coffee in the morning. Remember to include
a closing foo tag, e.g. </mycomp:foo>.
-->
</html>
Exception thrown is:
org.apache.jasper.JasperException: /apachebug.jsp(8,26) The end
tag "</mycomp:foo" is unbalanced
at org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:39)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:409)
at org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:134)
at org.apache.jasper.compiler.Parser.checkUnbalancedEndTag
(Parser.java:1706)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1561)
at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
[snip]
--
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