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/11/28 20:57:13 UTC

DO NOT REPLY [Bug 14943] New: - // style scriptlet comment with %> on same line comments out the next out.write(...)

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=14943>.
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=14943

// style scriptlet comment with %> on same line comments out the next out.write(...)

           Summary: // style scriptlet comment with %> on same line comments
                    out the next out.write(...)
           Product: Tomcat 4
           Version: 4.1.12
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: mike@ds808.net


A // style sciptlet comment with %> on same line comments out the next out.write
(...) statement.

Consider the following jsp code.

==================
<%  // This is a comment %>
This should be displayed on the screen. <br>
The end.
==================

This is the java output.
==================
  // This is a comment       out.write("\r\nThis should be displayed on the 
screen. ");
      out.write("<br>\r\nThe end.\r\n");
==================

By placing the %>, it wipes out the first out.write.  The workaround is to 
place the ending %> on a new line.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>