隐藏注释
写在jsp程序中,但不是发给客户。
jsp 语法
<%– comment –%>
例子:
<%@ page language="java" %>
<html>
<head><title>a comment test</title></head>
<body>
<h2>a test of comments</h2>
<%– this comment will not be visible in the page source –%>
</body>
</html>
描述
用隐藏注释标记的字符会在jsp编译时被忽略掉。这个注释在你希望隐藏或注释你的jsp程序时是很有用的。jsp编译器不是会对<%–and–%>之间的语句进行编译的,它不会显示在客户的浏览器中,也不会在源代码中看到
在<%– –%>之间,你可以任意写注释语句,但是不能使用 "–%>",如果你非要使用请用"–%\>".
