JSP provides separate tag for comment section. The content inside these tag is completely ignored by JSP engine.
The syntax of comment tag is mentioned below.
<%-- This is a comment section --%>
In JSP, a tag inside another tag is not allowed. So, comment tag cannot be used inside the scriptlet elements. Instead of JSP comment, you can also use HTML comment.by