tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21366] New: - A minor JSP-Servlet translation bug
Date Mon, 07 Jul 2003 10:45:02 GMT
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=21366>.
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=21366

A minor JSP-Servlet translation bug

           Summary: A minor JSP-Servlet translation bug
           Product: Tomcat 4
           Version: 4.1.24
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: emillan@albasoft.com


When I write a snippet in a JSP document (XML syntax) like this:

---------------------------------------------------
(some code)
...
<jsp:scriptlet>
  <![CDATA[
    //Here we go
    String foo = "foo";
    String bar = "bar";
  ]]>
</jsp:scriptlet>
...
(some foot code)
---------------------------------------------------

The JSP-Servlet translation converts that code into this:

---------------------------------------------------
//Here we go       String foo = "foo";      String bar = "bar";
---------------------------------------------------

So, as it converts the scriptlet into one line, when it gets compiled, the rest
of the code after comment will get commented too.

Note that using 'CDATA' is optional, when you use '<' or '&' characters. You can
omit CDATA when you are not using special characters. So this is not the reason.

When I transform the JSP Document wroten in XML syntax to JSP syntax, it works
properly.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message