jsp Comments in JSP HTML comment in a JSP


You can include HTML comments in JSPs as well. You use the basic html comment syntax:

<!--Comment goes here-->

The difference between using JSP style comments and HTML style comments is the JSP ones will not be included when the HTML is generated and the HTML style comments will be. So it depends if you want them to be seen if someone views the source HTML.