This is used to define comment description in jsp page. In jsp page we can insert three types of comments they are;
- Jsp comment
- Html comment
- Java comment
This type of comment is called as hidden comment, because it is invisible when a jsp is translated into a servlet internally.
<%-- Comment discription %>
Html comment tag is common for Html, xml and jsp. In a jsp page if we write html comment these comment are visible in the _jspService(-,-) of the internal Servlet.
<!-- Comment discription -->
We can write a single or multi line comment of java in a scriptlet tag.
Java comment are allowed only inside scriptlet tags because we can insert java code in a jsp only at a scriptlet tags.
// Single line comment /* Multiline comment */