Wed 13 Dec 2006
JSP Recipe #1: Use JSP comments instead of HTML comments
Posted by dkaz under Java
Every so often, I want to document my JSPs w/o having the comments leak into the public HTML source.
Luckily, Sun provided aa straight-forward way to get this done using JSP Comments
<%@ page language=”java” %>
<html>
<head><title>A Comment Test</title></head>
<body>
<h2>A Test of Comments</h2>
<%– This comment will not be included in the response –%>
</body>
</html>
