【发布时间】:2012-10-24 11:58:21
【问题描述】:
我在开头得到了一些(很多)带有注释代码的 jsp 文件。
看起来
<%-------------------------------------------%>
<%-- All the comment text about the author --%>
<%-- And of course the company --------------%>
<%-------------------------------------------%>
我在 Tomcat 7.0.30 上安装了应用程序并收到以下错误:
org.apache.jasper.JasperException: /path/to/jsp/file.jsp
(line: 13, column: 4) Unterminated <%-- tag
LAST 注释行是第 13 行!
当我将第 13 行的注释代码更改为
<%-- ----------- --%>
一切正常!
问题1:
为什么1号线没有问题? 编辑:因为它在第2行终止!
问题2:
作为评论是“不允许”的吗?
【问题讨论】:
-
这很奇怪...我用 cmets 做了一些测试。现在我无法重现它......也许是一些有线编码的东西......因为我用 nsis 复制了代码......