Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Syntax: <%-- comment --%>
<!-- comment -->
There are two different types of comments in JSP. The difference between the types of comments lies in whether the comments are viewable after the JSP engine parses the JSP page. The first type of comment is the standard HTML (and XML) comment, which is delineated by: <!-- comment -->. This comment is ignored by both the JSP engine and the browser, and is left intact. In effect all comments in HTML style are considered Template Data. To view a comment like this, simply choose to view source in an HTML browser.