e1057. commenting a jsp page.txt

来自「这里面包含了一百多个JAVA源文件」· 文本 代码 · 共 17 行

TXT
17
字号
Two types of comments are allowed in a JSP page - - hidden and output comments. A hidden comment will not appear in the generated output whereas an output comment will appear in the generated output. 
This example shows a hidden comment: 

    <%-- my hidden comment --%>

A restriction for hidden comments is that the comment string cannot contain the character sequence --. 
This example shows an output comment: 

    <!-- my output comment -->

Similar to hidden comments, output comments cannot contain the character sequence --. Output comments can contain dynamic content: 
    <!-- This page was generated on <%= new java.util.Date() %> -->

Output: 
    <!-- This page was generated on Wed Jun 26 10:33:27 PDT 2002 -->

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?