摘要:
<TABLE BORDER=2><% for ( int i = 0; i < n; i++ ) { %> <TR> <TD>Number</TD> <TD><%= i+1 %></TD> </TR> <% }%></TABLE> 阅读全文
posted @ 2012-01-24 00:52
greencolor
阅读(142)
评论(0)
推荐(0)
摘要:
The JSP "request" variable is used to obtain information from the request as sent by the browser. For instance, you can find out the name of the client's host (if available, otherwise the IP address will be returned.) Let us modify the code as shown:<HTML><BODY><% // Thi 阅读全文
posted @ 2012-01-24 00:41
greencolor
阅读(209)
评论(0)
推荐(0)
摘要:
a scriptlet does not generate HTML. If a scriptlet wants to generate HTML, it can use a variable called "out".<HTML><BODY><% // This scriptlet declares and initializes "date" System.out.println( "Evaluating date now" ); java.util.Date date = new java.util 阅读全文
posted @ 2012-01-24 00:37
greencolor
阅读(198)
评论(0)
推荐(0)
摘要:
<HTML><BODY><% // This is a scriptlet. Notice that the "date" // variable we declare here is available in the // embedded expression later on. System.out.println( "Evaluating date now" ); java.util.Date date = new java.util.Date();%>Hello! The time is now <%= 阅读全文
posted @ 2012-01-24 00:33
greencolor
阅读(190)
评论(0)
推荐(0)
浙公网安备 33010602011771号