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/09/25 22:39:41 UTC
DO NOT REPLY [Bug 13004] New: -
Error in page compilation when comment is place at the end of scriptlet and the scriptlet is the last line in the jsp page.
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=13004>.
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=13004
Error in page compilation when comment is place at the end of scriptlet and the scriptlet is the last line in the jsp page.
Summary: Error in page compilation when comment is place at the
end of scriptlet and the scriptlet is the last line in
the jsp page.
Product: Tomcat 4
Version: 4.1.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: whitejr@jfcom.mil
The following is compiled into java code incorrectly causing the javac compiler
to blowup:
----BEGIN-(Make this a jsp file between begin and end)--
Test: <% out.println("bug!"); //This prints out a bug%>
----END-----
The jsp compiler needs to put a newline in the java source after the closing jsp
scriptlet. Currently this causes the ending catch block to be commented out.
The following will allow the page to compile and run, however the output will
not be correct.
----BEGIN---
Test: <% out.println("bug!"); //This prints out a bug%>
----END-----
The additional line is placed ( which would be an out.print("\n"); ) on the same
line as the comment. This pushes the catch down one line. Since the out.print is
commented out it is never executed, however hardly anyone would miss the newline
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>