JSP Comment
Advertisements
JSP Comment
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
JSP Comment
This type of comment is called as hidden comment, because it is invisible when a jsp is translated into a servlet internally.
Syntax
<%-- Comment discription %>
Html Comment
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.
Syntax
<!-- Comment discription -->
Java Comment
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.
Syntax
// Single line comment /* Multiline comment */
Google Advertisment