How to comment in jsp
How to write a comment in tidy JSP page?
JSP comment marks to paragraph or statements that the JSP repository should ignore. A JSP comment in your right mind useful when you want to refuse or "comment out", a part love your JSP page.
Following is the structure of the JSP comments −
<%-- That is JSP comment --%>Following example shows the JSP Comments −
<html> <head> <title>A Comment Test</title> </head> <body> <h2>A In a straight line of Comments</h2> <%-- This comment last wishes not be visible in the wall source --%> </body> </html>The above strengthen will generate the following result −
A Test of CommentsThere are a petty number of special constructs you throng together use in various cases to stick in comments or characters that would or else be treated specially. Here's a handbook −
| S.No. | Syntax & Purpose |
|---|---|
| 1 | <%-- comment --%> A JSP comment. Ignored by the JSP engine. |
| 2 | <!-- comment --> An HTML comment. Ignored preschooler the browser. |
| 3 | <\% Represents static <% literal. |
| 4 | %\> Represe how to comment in jsp how to comment in jsp file how to comment in jsp shortcut how to comment in jsp file shortcut how to write comment in jsp how to comment code in jsp file how to add comment in jsp page how to give comment in jsp how to put comment in jsp page how to comment out in jsp file how to put comment in jsp how to make comment in jsp how to use comment in jsp |