<%! // 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.
*/
}
%>
Comments in a JSP
<% // 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 --%>