This Java example shows how to write comments in JSP file with syntax.
JSP comment tag tells container to ignore the enclosed statements or text in the page.
JSP Comments Syntax
1 |
<%-- This is JSP comment --%> |
JSP Comments Example
1 2 3 4 5 6 7 |
<html> <head><title>A Comment Test</title></head> <body> <h2>A Test of Comments</h2> <%-- This comment will not be visible in the page source --%> </body> </html> |