BBS水木清华站∶精华区

发信人: agents (智能代理), 信区: Java        
标  题: JSP语法(1) 
发信站: BBS 水木清华站 (Tue Jan  2 14:44:42 2001) 
 
1 【Output Comment】   
Generates a comment that can be viewed in the HTML source  file. 
Generates a comment that is sent to the client in the viewable page source. 
 
▲ [JSP Syntax] 
<!--    comment [ <%= expression %> ] --> 
▲ Example 
 
Example 1 
 
<!-- This file displays the user login screen --> 
Displays in the page source: 
<!-- This file displays the user login screen --> 
 
Example 2 
<!-- This page was loaded on 
 <%= (new java.util.Date()).toLocaleString() %> --> 
Displays in the page source: 
<!-- This page was loaded on January 1, 2000 --> 
 
▲ [Description] 
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. 
An Expression included in a comment is dynamic and is evaluated when  
the Webbrowser loads the page (that is, when the user first loads the  
page or reloads it later). You can use any valid JSP expression. 
 
-- 
 
※ 修改:·agents 於 Jan  2 15:04:11 修改本文·[FROM:   166.111.54.22] 
※ 修改:·agents 於 Jan  2 15:10:14 修改本文·[FROM:   166.111.54.22] 
※ 来源:·BBS 水木清华站 smth.org·[FROM: 166.111.54.22] 

BBS水木清华站∶精华区