Contents | Prev | Next


Hidden Comment

Documents the JSP page but is not inserted into the response.

JSP Syntax

<%-- comment --%>

XML Syntax

None.

Example

<%@ page language="java" %>	
<html>	
<head><title>A Comment Test</title></head>	
<body>	
<h2>A Test of Comments</h2>	
<%-- This comment will not be inclueded in the response --%>	
</body>	
</html>

Description

A hidden comment marks text or lines that the JSP container should ignore. A hidden comment is useful when you want to comment out part of your JSP page. The JSP container does not process anything within the <%-- and --%> characters. A hidden comment is not inserted into the response.



Contents | Prev | Next

Copyright © 2002, Sun Microsystems, Inc. All rights reserved.