📄 syntaxref.fm1.html
字号:
<html><head><title></title></head><body bgcolor=#ffffff> <a href="tags.html">[Top]</a> <a href="tags.html">[Prev]</a> <a href="syntaxref.fm2.html">[Next]</a> <a href="Copyright.fm.html">[Bottom]</a><hr><br> <a name="15841"> </a><h2 align="center"> Output Comment</h2><p><a name="15842"> </a>Generates a comment that is sent to the client in the viewable page source.</p><a name="8758"> </a><h4> JSP Syntax</h4><blockquote><pre><code><!--</code>    <em>comment</em> <code>[ <%= </code><em>expression</em><code> %> ] --></code></pre></blockquote><a name="16537"> </a><h4> Example 1</h4><blockquote><pre><!-- This file displays the user login screen --></pre></blockquote><p><a name="16510"> </a>Displays in the page source:</p><blockquote><pre><!-- This file displays the user login screen --></pre></blockquote><a name="16538"> </a><h4> Example 2</h4><blockquote><pre><!-- This page was loaded on <%= (new java.util.Date()).toLocaleString() %> --></pre></blockquote><p><a name="16519"> </a>Displays in the page source:</p><blockquote><pre><!-- This page was loaded on January 1, 2000 --></pre></blockquote><a name="10210"> </a><h4> Description</h4><p><a name="15810"> </a>The JSP engine handles an output comment as uninterpreted HTML text, returning the comment in the HTML output sent to the client. You can see the comment by viewing the page source from your Web browser.</p><p><a name="16541"> </a>An <a href="syntaxref.fm4.html#11258">Expression</a> included in a comment is dynamic and is evaluated when the Web browser loads the page (that is, when the user first loads the page or reloads it later). You can use any valid JSP expression.</p><a name="9009"> </a><h4> See Also</h4><ul><a name="9010"> </a><li><a href="syntaxref.fm2.html#8764">Hidden Comment</a><a name="15872"> </a><li><a href="syntaxref.fm4.html#11258">Expression</a></ul><hr><br> <a href="tags.html">[Top]</a> <a href="tags.html">[Prev]</a> <a href="syntaxref.fm2.html">[Next]</a> <a href="Copyright.fm.html">[Bottom]</a><hr><br><i>Copyright © 1999, Sun Microsystems, Inc. All rightsreserved.</i></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -