<!-- Here is an HTML comment - copied to the output -->
<%! // Single-line Java comments are copied to the generated servlet.
/** This is a Javadoc comment, used to document Java functions */
public void someMethod() {
/* Multi-line Java comment, useful to comment out
blocks of code during the development cycle.
This sort of comment is copied to the generated servlet.
*/
}
%>
<HTML>
<HEAD>
<TITLE>Comments in a JSP</TITLE>
</HEAD>
<BODY>
<% // A Java comment inside a scriptlet - copied into the generated servlet %>
Java and JSP comments.
<%-- A JSP comment - not copied to the servlet, or the output --%>
</BODY>
</HTML>