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 2004/03/07 20:00:55 UTC
DO NOT REPLY [Bug 27507] New: -
Incorrect XML Parsing of JSP Page
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27507>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27507
Incorrect XML Parsing of JSP Page
Summary: Incorrect XML Parsing of JSP Page
Product: Tomcat 5
Version: 5.0.19
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: javiator@yahoo.com
Whenever JSP page is written with XML tags (i.e. <jsp:*>) the "<" char, used in
the Java code, inserted between <jsp:scriptlet> tags results in "unterminated
tag error".
JSP page Example:
<html>
<head>
<title>Virtual exam</title>
</head>
<body bgcolor=white>
<jsp:scriptlet>
int nA=0;
if (nA<1) // the '<' is considered as a start of an XML tag
nA++;
</jsp:scriptlet>
</body>
</html>
The resulting Jasper error:
org.apache.jasper.JasperException: /x.jsp(7,15) Unterminated
<jsp:scriptlet> tag
org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:83)
org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:402)
org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:170)
org.apache.jasper.compiler.Parser.parseXMLScriptlet(Parser.java:881)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1591)
org.apache.jasper.compiler.Parser.parse(Parser.java:171)
...
Thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org