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