| Syntax | Purpose |
<%-- comment --%> | A JSP comment. Ignored by JSP-to-scriptlet translator. Any embedded JSP scripting elements, directives, or actions are ignored. |
<!-- comment --> | An HTML comment. Passed through to resultant HTML. Any embedded JSP scripting elements, directives, or actions are executed normally. |
<\% | Used in template text (static HTML) where you really want "<%". |
%\> | Used in scripting elements where you really want "%>". |
\' | A single quote in an attribute that uses single quotes. Remember, however, that you can use either single or double quotes, and the other type of quote will then be a regular character. |
\" | A double quote in an attribute that uses double quotes. Remember, however, that you can use either single or double quotes, and the other type of quote will then be a regular character. |
%\> | %> in an attribute. |
<\% | <% in an attribute. |