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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to