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 2002/04/12 19:19:17 UTC
DO NOT REPLY [Bug 8029] New: -
String literal "%\>" in JSP page causes 'Invalid escape character' complier error
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=8029>.
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=8029
String literal "%\>" in JSP page causes 'Invalid escape character' complier error
Summary: String literal "%\>" in JSP page causes 'Invalid escape
character' complier error
Product: Tomcat 4
Version: 4.0 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Critical
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: pyou@vignette.com
CC: pyou@vignette.com
The following jsp file demonstrates the problem:
<%
// output string: <%@ include file="/vgn/jsp/include.jsp" %>
String str1 = "<%@ include file=\"/vgn/jsp/include.jsp\" %\>";
out.println(str1);
%>
When evaluating this jsp file on Tomcat 4.0, I received error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occured between lines: 1 and 4 in the jsp file: /test.jsp
"Generated servlet error:
C:\Apache\jakarta-tomcat-4.0\work\localhost\_\test$jsp.java:55: Invalid escape
character.
String str1 = "<%@ include file=\"/vgn/jsp/include.jsp\" %\>";
^
1 error"
I think this is a bug in Tomcat implmentation since the escape sequence "%\>"
is defined in section JSP 2.6 of JSP Specification 1.2.
Weblogic 6.1 & 7.0 evaluate the above jsp file correctly.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>