Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.
Text or statements that the JSP container should disregard are marked with JSP comments. When you want to "comment out" or hide a section of your JSP page, you can use a JSP comment.
A comment that is sent to the client in the viewable page source.The JSPengine handles an output comment as uninterpreted HTML text, returning thecomment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser.
there is two types of comments in JSP
Example of hidden comment:
<%--Thisis hidden comment --%>Example of output comment :
<!-- This is output comment -->The only difference is that the output comment will appear in the source of the jsp page while the hidden will not appear , note that both comments will skipped by the compiler