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

Cannot use "//" comments in JSP code

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |



------- Additional Comments From [EMAIL PROTECTED]  2001-10-22 10:21 -------
Sorry but your resolution makes no sense.

You seem to imply that:

- "//" comments are invalid within JSP code, which is incorrect.
- Just because other container implementations don't fix this issue, Tomcat 
shouldn't either. Which is also incorrect.

I never said Tomcat should convert "//" style comments to /* */ style comments 
for me. 

The way I look at it, you have two possible solutions:

- Tomcat scans for "//" style comments and removes the commented code before it 
compiles the JSP file into a Servlet. This is a quick-fix, but not ideal.

- Tomcat scans for "//" comments, compiles the line of code without the 
commented component, and appends the comment thereafter. For example:

JSP Code:

  System.out.println("This is a test"); //This should work quite well

Tomcat steps:

- Convert 'System.out.println("This is a test");' into Servlet
- Add "//This should work quite well" after resulting line of code

Reply via email to